-
Notifications
You must be signed in to change notification settings - Fork 103
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
1.2.0版本安卓正常,ios m1 arm架构下无法编译启动; #158
Comments
这是因为高德 SDK 没有给模拟器提供 arm64 版,你要测试的话要运行到真机,或者运行到 macos 上 |
请问真机上可以正常运行吗 |
好的谢谢您!我完了测试下 |
暂时没有真机,抱歉没有测试过,不过让x86的朋友远程测试过确实可以运行 |
大佬真是救我狗命,感谢分享!😂 |
Xcode :14.1
"react-native-amap-geolocation": "^1.2.0"
"react-native": "0.69.4"
删除react-native-amap-geolocation包后,重新执行pod install则可正常启动;
运行 npx react-native run-ios 报错;
ld: warning: ignoring file /Users/xxx/Library/Developer/Xcode/DerivedData/hscy_app-fjtzylwkeoyzyscpwkafipnyyazi/Build/Products/Debug-iphonesimulator/react-native-amap-geolocation/libreact-native-amap-geolocation.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RNSplashScreen", referenced from:
objc-class-ref in AppDelegate.o
"_RCTAppSetupDefaultRootView", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_RCTAppSetupPrepareApp", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hscy_app' from project 'hscy_app')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hscy_app' from project 'hscy_app')
** BUILD FAILED **
The following build commands failed:
Ld /Users/xxx/Library/Developer/Xcode/DerivedData/hscy_app-fjtzylwkeoyzyscpwkafipnyyazi/Build/Products/Debug-iphonesimulator/hscy_app.app/hscy_app normal (in target 'hscy_app' from project 'hscy_app')
(1 failure)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command
The text was updated successfully, but these errors were encountered: