I'm following the tutorial recommended on the Frank-Cucumber website (http://blog.thepete.net/blog/2012/06/24/writing-your-first-frank-test/), but once executing frank build, the build fails saying:
The following build commands failed:
Ld Frank/frankified_build/2012\ Olympics.app/2012\ Olympics normal i386
(1 failure)
This clang error is present around the previous ld call:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using XCode 4.6.3, I have the command line tools installed, and I'm running the example application taken from GitHub.
What could be wrong? Any ideas?
Seems like using sudo frank build --arch armv7s fixes it.
Related
While I'm trying to run the react-native ios application with command react-native run-ios. The Build goes failed and showing me error following:-
ld: warning: directory not found for option
'-L/Users/User/Documents/react-test-app/ios/build/Build/Products/Debug-iphonesimulator/React'
ld: library not found for -lRNSVG clang: error: linker command failed
with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/react-test-app.app/react-test-app
normal x86_64 (1 failure)
Installing
build/Build/Products/Debug-iphonesimulator/react-test-app.app An error
was encountered processing the command (domain=NSPOSIXErrorDomain,
code=22): Failed to install the requested application The bundle
identifier of the application could not be determined. Ensure that the
application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier
build/Build/Products/Debug-iphonesimulator/oldapollo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist.
Please Help Me Out To resolve this problem.
Thank you in advance
Open Melkana.xcworkspace instead of Melkana.xcodeproj in Xcode
Try the solutions here.
https://github.com/facebook/react-native/issues/7308
Possible ones may work
Update React using react-native upgrade
or
Run from the project by opening from your project.xcworkspace
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.
I'm trying to run a Gomobile test on the terminal here is my code
I have done like instruction from https://www.sitepoint.com/ios-and-android-programming-with-go/
go get golang.org/x/mobile/cmd/gomobile
gomobile init
gomobile build -target=ios golang.org/x/mobile/example/basic
Which gives me the error:
gomobile: go build -tags ios -ldflags=-w -o=/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/gomobile-work-977299939/amd64 golang.org/x/mobile/example/basic failed: exit status 2
# golang.org/x/mobile/example/basic
/Users/ibct/.gvm/gos/go1.9.6/pkg/tool/darwin_amd64/link: running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed: exit status 1
ld: building for iOS simulator, but linking in object file built for OSX, file '/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/go-link-176961670/000003.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am taking my iPhone app code from SVN and then trying to build it via Jenkins. Xcode version 7.3.1
But I am getting the following error -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Release-iphoneos/xxxxxxx.app/xxxxxxx normal armv7
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE
I have already spent days to resolve this and would appreciate if some one can help me. Let me know if more details are needed.
Thanks.
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.