While doing pod repo push on azure pipeline, if some error occurs, pod repo push is failing silently.
for example, On running this command on pipeline -> pod repo push REPO_NAME MyLib.podspec --verbose --allow-warnings, I can see this error :
Undefined symbols for architecture arm64:
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation),
but still getting successful build on pipeline, is there any way to catch these silent failures and make the pipeline fail
If you are based on bash, you can use exit 1 to force the pipeline to fail.
Related
When i try to flutter run i get this error:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Since there are quite a lot of warnings, I am only showing the error parts for now. I have tried a few solutions that get this type of error but still could not find the solution. This part seems to be the only reason I got an error.
I recently updated XCode version to XCode 12 and started to encounter this error
ld: in /project_path/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o),
building for iOS Simulator, but linking in object file built for iOS,
file '/project_path/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am unable to run or archive the project
I have tried the following to fix this error with no success
deleted pods folder and reinstalled
updated pods
Excluded arm64 architecture for debug
I am not sure what is causing the error.
Please help
creating a build getting this error
ld: library not found for -lPods-Swan
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Deleted -lPods-Swan.a in main project and now works.
I have been facing an issue that fails to build Alamofire using Carthage.
My environment is as follows :
OSX 10.10.5
Xcode 6.4
Also 7.0 and 7.1 are already installed.
Carthage 0.9.3
Trying to install Alamofire 1.3.1 (latest Swift 1.2 release)
I tried the command below then error occurs.
$ echo 'github "Alamofire/Alamofire" "1.3.1"' > Cartfile ; carthage update --platform ios
*** Cloning Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/ch/jcgf09f15hl391jn849d5yr80000gn/T/carthage-xcodebuild.ZM1b0b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
Then I tried to build using Xcode.
Open Alamofire.xcworkspace and hit Cmd+B then fails with error below :
Xcode error image
I have never seen the warning Unable to find swiftCore; please set SWIFT_LIBRARY_PATH (currentry '') to the folder containing swiftCore
I think that this warning relates to the issue, but I don't know how to solve this one...
Are there any solutions?
i have fetched a code via git. it already has a pod setup. i am unable to compile the code since all the libs in pods prodect are listed red, i have read a few a forums and i do have the latest cocoa pods + opening the workspace file not the xcodeproj. the issue seems to be Xcode unable to reference agains those libs , any help ?
i have tried using $inherited in the header paths but nothing works . the error is
ld: library not found for -lOCMock
clang: error: linker command failed with exit code 1 (use -v to see invocation)