Skip to content
New issue

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

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

Already on GitHub? # to your account

CI Build Error: ld: symbol(s) not found for architecture arm64 #27

Closed
cjam opened this issue Jan 22, 2020 · 2 comments · Fixed by #28
Closed

CI Build Error: ld: symbol(s) not found for architecture arm64 #27

cjam opened this issue Jan 22, 2020 · 2 comments · Fixed by #28
Assignees
Labels
bug Something isn't working

Comments

@cjam
Copy link
Owner

cjam commented Jan 22, 2020

I'm building my app using Azure Devops and upgraded to 0.1.1 which subsequently broke the build with the following error:

❌  ld: symbol(s) not found for architecture arm64

❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think it might be related to me moving around some of the files within the Spotify.framework folder. Not sure how to test locally at this point, so I may have to push a new version.

@cjam cjam added the bug Something isn't working label Jan 22, 2020
@cjam cjam self-assigned this Jan 22, 2020
cjam added a commit that referenced this issue Jan 22, 2020
@cjam cjam closed this as completed in #28 Jan 22, 2020
cjam added a commit that referenced this issue Jan 22, 2020
@cjam cjam reopened this Jan 22, 2020
@cjam
Copy link
Owner Author

cjam commented Jan 23, 2020

Seems I'm not the only one seeing this.

spotify/ios-sdk#179

Oddly, it only seems to be on the CI build which is happening in azure devops. I can't reproduce it on my own machine.

@cjam cjam changed the title Azure Devops Build Error ld: symbol(s) not found for architecture arm64 build error Jan 23, 2020
@cjam cjam changed the title ld: symbol(s) not found for architecture arm64 build error CI Build Error: ld: symbol(s) not found for architecture arm64 Jan 23, 2020
@cjam
Copy link
Owner Author

cjam commented Feb 1, 2020

This error is a result of using a framework that has been built in XCode 11 with the ___isPlatformVersionAtLeast check within a build running in XCode 10. According to this thread https://forums.developer.apple.com/thread/123003 XCode 11 injects some symbols that aren't available in XCode 10 and therefore breaks things.

Switched my CI environment to XCode 11 and it fixed the problem.

@cjam cjam closed this as completed Feb 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant