yonaskolb / yonaskolb/XcodeGen
Xcodegen don't respect xcode-select settings
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Dear all,
i have Xcode 10.1 and 10.2 installed. I switch the version to Xcode 10.2 which is located at:
/Applications/Xcode-10.2.app/Contents/Developer
Xcode 10.1 is located under:
/Applications/Xcode.app/Contents/Developer
If i call xcodegen i get this Error message:
dyld: Symbol not found: _$s11SubSequenceSlTl
Referenced from: /usr/local/bin/xcodegen
Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib
in /usr/local/bin/xcodegen
b
The xcodegen tool is using the old Xcode Version and don't respect the changes i made with xcversion or xcode-select.
What can i do to get rid of this error?
Kind regards,
Julian
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by selecting /Applications/Xcode-10.2.app/Contents/Developer with xcode-select or xcversion, then invoking xcodegen. Trace how the xcodegen CLI chooses its Swift runtime versus /Applications/Xcode.app; done means it uses the selected developer directory and no longer reports the libswiftCore.dylib symbol error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100