I am using M1 and I got an error when I tried to run my project on simulator.
After some research I added armv7s armv7 i386 x86_64 arm64 in Excluded Architectures and now I got another error saying: Command PhaseScriptExecution failed with a nonzero exit code
Related
clang: error: no such file or directory:
'/Users/xujun/Library/Developer/Xcode/DerivedData/SimplifiedR2-cqmftumxfrylwdgmkcovwahjhquk/Build/Products/Debug-iphonesimulator/libRDServices.a'
Command Ld failed with a nonzero exit code
Xcode 13.4.
My project won´t run after adding framework by Carthage. How to solve this error?
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 have installed cordova-plugin-geofence in my project but when i try to build it gives following errors :-
The following build commands failed:
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/GeofencePlugin.swift
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/SwiftData.swift
CompileSwift normal arm64 /Users/itr/Desktop/richboy/platforms/ios/OnTheList/Plugins/cordova-plugin-geofence/SwiftyJson.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(4 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/itr/Desktop/richboy/platforms/ios/cordova/build-debug.xcconfig,-workspace,OnTheList.xcworkspace,-scheme,OnTheList,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,OnTheList.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/itr/Desktop/richboy/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/itr/Desktop/richboy/platforms/ios/build/sharedpch
How to resolve these errors ?
This solution work for me
Go to your project->platforms->ios->projectName(folder)->plugins->cordova-plugin-geofence
You will find four files.
Replace this file with this file content https://github.com/ypelud/cordova-plugin-geofence/tree/d2e1f22340ac2cd07559598fd290df462e75055d/src/ios
Recently I was asked to creat a CI system, so I tride to use xcodebuild.
But I got Errors, the command is :xcodebuild -sdk iphoneos -configuration Release clean build
Errors:
ld: library not found for -lFMDB
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/ProjectName.build/Release-iphoneos/ProjectName.build/Objects-normal/armv7/ProjectName normal armv7
Ld build/ProjectName.build/Release-iphoneos/ProjectName.build/Objects-normal/arm64/ProjectName normal arm64
I import FMDB by cocoa pods, and Header Search Path has this path "${PODS_ROOT}/Headers/Public/FMDB".
Please help me,thx very much.
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.