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

ld: symbol(s) not found for architecture arm64 #194

Closed
solitarysp opened this issue Aug 2, 2023 · 2 comments
Closed

ld: symbol(s) not found for architecture arm64 #194

solitarysp opened this issue Aug 2, 2023 · 2 comments

Comments

@solitarysp
Copy link

solitarysp commented Aug 2, 2023

What did you do?

  • When I build my app I get the error ld: symbol(s) not found for architecture arm64 on file OpenChatCreatingController and ShareViewController with cause not found _swift_stdlib_isStackAllocationSafe

What did you expect?

Build with arm64 successfully

What happened actually?

[ Please describe what happened actually.](ld: symbol(s) not found for architecture arm64)

Your environment?

Some information of the environment in which the issue happened. LINE SDK version, Xcode version, iOS version, etc.

  • LineSDKSwift (5.8.1):
  • Xcode 14.2
    Build version 14C18
@onevcat
Copy link
Member

onevcat commented Aug 2, 2023

Your error

Undefined symbols for architecture arm64:
  "_swift_stdlib_isStackAllocationSafe", referenced from:

It means something inside Swift is missing when building your app. Basically, it is caused by the Swift standard library not being in the search path so Xcode cannot find it.

It is much more possibly related to some malformed or wrong project settings in your project instead of something in the LINE SDK Swift. Can you first try and make sure that it can be built in a newly create Xcode project for arm64?

@solitarysp
Copy link
Author

solitarysp commented Aug 2, 2023

@onevcat What version of swift should I use?

My Version

swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: x86_64-apple-macosx12.0

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

2 participants