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

[Need help] yarn ios fail on Apple M1 macOS #533

Closed
Naeemo opened this issue Apr 15, 2022 · 4 comments
Closed

[Need help] yarn ios fail on Apple M1 macOS #533

Naeemo opened this issue Apr 15, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Naeemo
Copy link

Naeemo commented Apr 15, 2022

It's probably M1/arm related base on the error message, tried Google around but no progress.
Thanks.


full output of yarn ios:

yarn run v1.22.17
$ expo run:ios
› Planning build
› Executing react-native-config Pods/react-native-config » [CP-User] Config codegen
› Executing expo-constants Pods/EXConstants » [CP-User] Generate app.config for prebuilt Constants.manifest
› Compiling react-native-config Pods/react-native-config » ReactNativeConfig.m
› Packaging react-native-config Pods/react-native-config » libreact-native-config.a
› Executing OneKeyWallet » Start Packager on http://localhost:8081
› Linking   OneKeyWallet » OneKeyWallet

❌  ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/naeemo/Workspace/github/app-monorepo/packages/app/ios/OneKeyWallet/Frameworks/GPChannelSDKCore.framework/GPChannelSDKCore' for architecture arm64



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



› 2 error(s), and 0 warning(s)

Failed to build iOS project. "xcodebuild" exited with error code 65.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@loatheb loatheb added the help wanted Extra attention is needed label Apr 15, 2022
@loatheb
Copy link
Contributor

loatheb commented Apr 15, 2022

Currently for our IOS project, can only run at intel OSX Simulator. Because our dependiency GPChannelSDKCore for security data communication between APP and OneKey Lite doesn't support arm64 platform.

Our developer using M1 is debug at real device not simulator.

In the furture we will add a flag to ignore GPChannelSDKCore compile. Currently for M1 user can only run desktop, browser extension, web and android simulator environment.

@loatheb loatheb added the enhancement New feature or request label Apr 15, 2022
@Naeemo
Copy link
Author

Naeemo commented Apr 15, 2022

Currently for our IOS project, can only run at intel OSX Simulator. Because our dependiency GPChannelSDKCore for security data communication between APP and OneKey Lite doesn't support arm64 platform.

Our developer using M1 is debug at real device not simulator.

In the furture we will add a flag to ignore GPChannelSDKCore compile. Currently for M1 user can only run desktop, browser extension, web and android simulator environment.

OK, 👌

@Naeemo Naeemo closed this as completed Apr 15, 2022
@jacko06v
Copy link

jacko06v commented May 1, 2022

i didn't see that, i got a lot of error but finally i ran the app on ios simulator on arm64
-1 download repo
-2 go on packages/app and edit react-native version inside package.json to 0.64.3
-3 go on main directory and run yarn
-4 go inside packages/app/ios
-5 run sudo gem install cocoapods
-6 cd ..
-7 run export NODE_OPTIONS=--max-old-space-size=8192
-8 run react-native run-ios
-9 run expo start --dev-client

this worked for me

@loatheb
Copy link
Contributor

loatheb commented May 2, 2022

@jacko06v @Naeemo
After this PR #552, our project is working at OSX M1 arm64 simulator now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants