yonaskolb / yonaskolb/XcodeGen

Xcodegen don't respect xcode-select settings

Open
#566 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.