Tried to run the nativescript app using "tns run ios" and get the following error.
Saving metadata generation's stderr stream to: /...../platforms/ios/build/Debug-iphonesimulator/metadata-generation-stderr-x86_64.txt
~/work/qoo/qoo/platforms/ios
ld: in /Users/..../platforms/ios/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_8094107d82c527bf23f93e98c9db96d1.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/...../platforms/ios/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
However if i run the generated .xcworkspace project on iphone 11 pro max... the app starts up just fine.
Related
steps to reproduce:
react-native init FirstProject
cd FirstProject
open ios/FirstProject.xcodeproj
... Xcode opens the project:
I select build target iOS Simulator -> Iphone XR
A terminal window opens in the background:
However, Xcode returns a build error:
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
shown with warnings here https://gist.github.com/jasonfb/7b51a260df419590c6fadda93fb49348
You should be opening the workspace, not the project file as indicated per instructions at the end of the project creation script:
• cd "/Users/xxx/FirstProject" && npx react-native run-ios
- or -
• Open FirstProject/ios/FirstProject.xcworkspace in Xcode or run "xed -b ios"
• Hit the Run button```
when I'm trying to publish my React native application, I first try to build an app and it builds successfully. Then when product » archive I get the following error:
ld: 513 duplicate symbols for architecture arm64 clang:
error: linker command failed with exit code 1
(use -v to see invocation)
note: I'm using the .xcworkspace file
You probably have React Native included in your project file, and also installed a CocoaPod which includes React Native as a dependency, so you have 2 copies of React Native. Delete one.
Receiving the following error when doing a
tns run -v ios
(mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error:
`Building project...
Xcode build...
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
Ld build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/x86_64/HelloWorld normal x86_64
** BUILD FAILED **
Unable to apply changes on device: B71912B9-B650-4EBF-AB43-3383136CB95F. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/XXX/temp/NATIVE/HelloWorld/hooks/after-watch/nativescript-dev-webpack.js`
run tns build ios --clean --log trace first ,if the log trace is related to some plugin, use whose latest version in the package.json file , run npm install, than run tns build ios --clean --log trace again.
if it not work, run tns prepare ios --release and open {app-name}/platforms/ios/{app-name}.xcworkspace file with xcode , try run it, xcode will tell you where is the problem.
Some background information, I included FBSDKCoreKit.framework in xcode version 6.3.1 (Yosemite).
I'm getting this error message when I try to load the application into a mobile phone.
Error message:
FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestMetadata.o), load command #1 has a unaligned size for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
However I don't get this error when I tried to load the application into a mobile phone in xcode 6.2 (Mavericks).
Anyone experienced in this?
I have a project (Flappy Thing) which has iOS (Flappy-Thing-iOS) and OS X (Flappy-Thing-OSX) targets using entirely swift (no obj-c). I am using Xcode 6.1.1. When I run the app on my mac or the simulator it compiles and runs fine without any errors. But when I try and profile the app (which I think uses the release build config rather than debug), I get a bunch of errors:
When I profile on iOS (on the simulator):
1.
Lipo error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
can't open input file:
/Users/Dan/Library/Developer/Xcode/DerivedData/Flappy_Thing-cjnzzxiecdblbkcftlklzfplyfny/Build/Intermediates/Flappy Thing.build/Release-iphonesimulator/Flappy-Thing-iOS.build/Objects-normal/i386/Flappy-Thing-iOS (No such file or directory)
2.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 1
3.
Command /usr/bin/ditto failed with exit code 1
4.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
5.
Dsymutil error
(null): error: unable to open executable '/Users/Dan/Library/Developer/Xcode/DerivedData/Flappy_Thing-cjnzzxiecdblbkcftlklzfplyfny/Build/Products/Release-iphonesimulator/Flappy-Thing-iOS.app/Flappy-Thing-iOS'
And when I profile for OS X:
1.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
2.
Command /usr/bin/ditto failed with exit code 1
3.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4.
Dysmutil error
(null): error: unable to open executable '/Users/Dan/Library/Developer/Xcode/DerivedData/Flappy_Thing-cjnzzxiecdblbkcftlklzfplyfny/Build/Products/Release/Flappy-Thing-OSX.app/Contents/MacOS/Flappy-Thing-OSX'
I have read other solutions for Lipo errors such as setting build active architecture only to yes for release config. But none of them have worked
Can someone please explain what these errors mean, what is causing them and how to fix them.
Thanks in advance :]
Edit: these are the current architecture build settings:
iOS target:
OS X target:
Edit 2:
I have only run and profiled the iOS target on the simulator. The OS X target also gets these errors (but not the lipo one) when I profile it (but it builds fine normally)
Maybe because you profile the simulator (which is i386) while valid archs are arm only in your build settings (thus, no i386 obj files available to link and run).
When you profile for MAC, you automatically build for i386.