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

Problem when building TPDirect_Example on M1 MacBook. #3

Open
AllenLeePoH opened this issue Dec 25, 2021 · 6 comments
Open

Problem when building TPDirect_Example on M1 MacBook. #3

AllenLeePoH opened this issue Dec 25, 2021 · 6 comments

Comments

@AllenLeePoH
Copy link

AllenLeePoH commented Dec 25, 2021

Xcode Version: 13.2.1

Was trying running the example on simulator iPhone 12 iOS 15.2

Error Message:
ld: in /Users/LeePo/Downloads/tappay-ios-example-2.13.0/Swift/Direct_Pay/TPDirect_Example/TPDirect_Example/TPDirect.framework/TPDirect(TPDCard.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please help for update TPDirect.framework to support arm64 for Apple Silicon, thanks!

Although I checked by command lipo -info
Architectures in the fat file: /Users/LeePo/Downloads/tappay-ios-example-2.13.0/Swift/Direct_Pay/TPDirect_Example/TPDirect_Example/TPDirect.framework/TPDirect are: i386 armv7 x86_64 arm64 armv7s

result contains arm64 and x86_64, still can't running on simulator.

I also create new project and import downloadedUniversal\Device TPDirect.framework 2.13.0, can't run on my M1 MacBook.
Got same error message like beginning.
ld: in /Users/LeePo/Downloads/tappay-ios-example-2.13.0/Swift/Direct_Pay/TPDirect_Example/TPDirect_Example/TPDirect.framework/TPDirect(TPDCard.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@AllenLeePoH
Copy link
Author

Provide Stripe change for you reference.
stripe/stripe-ios#1683

@kaojiaqi
Copy link
Contributor

@AllenLeePoH
您好
方便將您的問題聯絡我們的客服
email: support@cherri.tech
LINE ID:@tappay_official

@marcuswu0814
Copy link

marcuswu0814 commented Jan 24, 2022

Same issue here, any update for this?

一樣的問題,有機會可以支援 M1 的模擬器進行開發嗎?


聯絡客服後給的 workaround:

https://stackoverflow.com/a/63955114


Tip from service:

https://stackoverflow.com/a/63955114

Workaround for building on arm based simulator.

Be sure config is set to "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64 not "EXCLUDED_ARCHS[sdk=*]" = arm64;

@marcuswu0814
Copy link

@kaojiaqi
Copy link
Contributor

@marcuswu0814
後續會再排入優化
謝謝

@marcuswu0814
Copy link

I can confirm the issue was gone after update to 2.16.5 *.xcframework. Thanks. 🙏

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

3 participants