Opened 2 years ago

Closed 2 years ago

#57190 closed defect (fixed)

iTerm2 failed to build on Mojave with Xcode-10.0

Reported by: lyskov (Sergey Lyskov) Owned by: markemer (Mark Anderson)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc: eborisch (Eric A. Borisch), rlhamil, cjones051073 (Chris Jones)
Port: iTerm2

Description

On OS X 10.14 MacPort local install with no root privileges: iTerm2 port failed to build due to insufficient privileges to create dir in ~/Library/Developer/Xcode/DerivedData/, here is the relevant snippets from the build log:

:info:build Executing:  cd "/Users/bill/prefix/macports.mojave/var/macports/build/_Users_bill_prefix_macports.mojave_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_iTerm2/iTerm2/work/iTerm2-3.2.0" && /usr/bin/make -j8 -w prod
:debug:build system:  cd "/Users/bill/prefix/macports.mojave/var/macports/build/_Users_bill_prefix_macports.mojave_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_iTerm2/iTerm2/work/iTerm2-3.2.0" && /usr/bin/make -j8 -w prod
:info:build make: Entering directory `/Users/bill/prefix/macports.mojave/var/macports/build/_Users_bill_prefix_macports.mojave_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_iTerm2/iTerm2/work/iTerm2-3.2.0'
:info:build xcodebuild -parallelizeTargets -target iTerm2 -configuration Deployment && \
:info:build 	chmod -R go+rX build/Deployment
:info:build 2018-09-27 16:48:17.001 xcodebuild[16762:62551] [MT] IDELogStore: Failed to open log store at /Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Build
:info:build 2018-09-27 16:48:17.001 xcodebuild[16762:62551] [MT] IDELogStore: Failed to open Build log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Build': (513) You don\U2019t have permission to save the file \U201cBuild\U201d in the folder \U201cLogs\U201d.";
:info:build }.
:info:build 2018-09-27 16:48:17.046 xcodebuild[16762:62551] Couldn't create intermediates directory: You don’t have permission to save the file “Intermediates.noindex” in the folder “Build”.
:info:build 2018-09-27 16:48:17.377 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache/workspace' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.378 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache/project' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt' (Operation not permitted (1))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.379 XCBBuildService[16764:62587] unable to create directory: '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Build/Intermediates.noindex/XCBuildData/PIFCache/target' (No such file or directory (2))
:info:build 2018-09-27 16:48:17.380 xcodebuild[16762:62551] [MT] IDELogStore: Failed to open log store at /Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Test
:info:build 2018-09-27 16:48:17.380 xcodebuild[16762:62551] [MT] IDELogStore: Failed to open Test log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Test': (513) You don’t have permission to save the file “Test” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/Users/bill/Library/Developer/Xcode/DerivedData/iTerm2-gqfmmgffhcbpyabsrmkcrlkizwyt/Logs/Test': (513) You don’t have permission to save the file “Test” in the folder “Logs”.}. User info: {

Change History (7)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to markemer
Status: newassigned

Looks like #57137?

comment:2 Changed 2 years ago by eborisch (Eric A. Borisch)

Cc: eborisch added

comment:3 Changed 2 years ago by rlhamil

Cc: rlhamil added

comment:4 Changed 2 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:5 Changed 2 years ago by hardwhack

I had the same problem described here but tried reinstalling iTerm2 and am glad to report that it now builds correctly. I think this ticket can be closed. Would be interesting to see how this was resolved.

comment:6 Changed 2 years ago by lyskov (Sergey Lyskov)

I can also confirm that this is now seems resolved. Thanks,

comment:7 Changed 2 years ago by yan12125 (Chih-Hsuan Yen)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.