Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage & Xcode 7.3 Pre-Built Binaries Error #874

Closed
DanielAllsoppSage opened this issue Mar 23, 2016 · 6 comments
Closed

Carthage & Xcode 7.3 Pre-Built Binaries Error #874

DanielAllsoppSage opened this issue Mar 23, 2016 · 6 comments

Comments

@DanielAllsoppSage
Copy link

It would seem that the pre-built binaries which are downloaded from the ios-charts GitHub repository, version 2.2.3, have been built with a different version of Swift than the one supplied with Xcode 7.3, which results in the following error when the app is run:

dyld: Symbol not found: __TMPdCSs18_HeapBufferStorage

The only solution we have at the moment if to use the --no-use-binaries flag and have Carthage build the library, which on our CI server is currently taking 25 minutes to build, and which doesn't work every time.

Amongst the multiple deprecation warnings, the build sometimes fails completely:

`clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
Ld /Users/xxxxx/Library/Developer/Xcode/DerivedData/ChartsRealm-dueqjgquumbdmuersunznehakala/Build/Intermediates/Charts.build/Release-iphoneos/Charts-OSX.build/Objects-normal/armv7/Charts normal armv7
Ld /Users/xxxxx/Library/Developer/Xcode/DerivedData/ChartsRealm-dueqjgquumbdmuersunznehakala/Build/Intermediates/Charts.build/Release-iphoneos/Charts-OSX.build/Objects-normal/arm64/Charts normal arm64
(2 failures)`

Any ideas when we might be able to get a newer version of the pre-built binaries from this repository? We've also tried the 'swift3' branch, and get the same linking error with ChartsRealm as shown above.

Thanks

@ghost
Copy link

ghost commented Mar 24, 2016

+1

This might be related to carthage, there is an issue in their repo: Carthage/Carthage#1200

@gianues
Copy link

gianues commented Mar 25, 2016

+1
I have the same problem with XCode 7.3. After running the 'carthage update' command and rebuilding my project, I get a build error.
Error message: "Module file was created by an older version of the compiler; rebuild 'Charts' and try again. .../Build/iOS/Charts.framework/Modules/Charts.swiftmodule/x86_64.swiftmodule'

Is there a way to tell Carthage to get the 'Charts' sources and build them itself?

@pmairoldi
Copy link
Collaborator

Use the --no-use-binaries flag. This will recompile all dependencies instead of downloading the prebuilt one.

@pmairoldi
Copy link
Collaborator

As far a new prebuilt binary goes. It will be with the next version. You can commit the build folder if ci is really slow and building the dependencies.

@gianues
Copy link

gianues commented Mar 25, 2016

@petester42 carthage update --no-use-binaries worked for me, thx

@dbmrq
Copy link

dbmrq commented Apr 15, 2016

When using --no-use-binaries I also get clang: error: linker command failed etc. a lot of the time.
Always on those /DerivedData/ChartsRealm directories too.
@DanielAllsoppSage Did you figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants