Builds for running (on the device/simulator) compile and execute properly. However, when I try to build for archiving, I get the following errors:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
What are the possible reasons for this error? If it helps to know; I am using CocoaPods as a dependency manager.
Pod file is as follows :
pod 'Alamofire', '~> 3.0'
pod 'SDWebImage', '~>3.7'
pod 'PureLayout'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'GoogleMaps'
pod 'QRCodeReader.swift', '~> 5.2.1'
I solved the error.
Error was in GoogleMaps latest version 1.12.2 &
I changed
pod 'GoogleMaps'
To
pod 'GoogleMaps' , '~> 1.11.1'
And it worked.
Check Pod dependencies with brute force,when such error occurs.
Related
I have added Firebase to my podfile and pod installed. Get the error above.
I then delete PodFile and Podfile.lock and try again. Same error.
Did again but first did pod repo update. And again with pod update then pod install. Same error
Added all Firebase to my Linker Library and same Error.
platform :ios, '10.0'
target 'myApp' do
pod 'RestKit', '~> 0.27.3'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SDWebImage', '~> 5.0'
end
All answers on Stackoverflow say open .workspace instead or project. I am doing this and same error.
Is there a chance something was edited when someone opened the project file instead of the workspace file?
Not sure where to go from here.
I am trying to build a project that was developed around sept 2015. Getting the following error when run on device,
ld: library not found for -lPods
clang: error: linker command failed with exit code 1
I have Podfile.lock which has the version of the libs was being used back then. But I am using latest Cocoapods (v 1.21.1). Assuming this could the problem, I installed Cocoapods (v 0.39.0) that was the version back then. But having following error,
[!] Unable to load a specification for plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-deintegrate-1.0.1`
Updating local specs repositories
[!] The `master` repo requires CocoaPods 1.0.0 - (currently using 0.39.0)
Update CocoaPods, or checkout the appropriate tag in the repo.
So I installed CocoaPods (v 1.0.0) but getting the same error,
ld: library not found for -lPods
clang: error: linker command failed with exit code 1
Any help is appreciated. Thanks!
Update
Here is the podfile content,
platform :ios, '7.0'
# source 'git#bitbucket.org:****dev/****-ios-spec-pod.git'
source 'https://github.com/CocoaPods/Specs.git'
#source 'https://bitbucket.org/****dev/****-ios-spec-pod.git'
# to test Pod :path => '~/Documents/...'
xcodeproj '****/****.xcodeproj'
# ignore all warnings from all pods
inhibit_all_warnings!
target "****" do
pod 'SVProgressHUD'
pod 'AFNetworkActivityLogger'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'APAvatarImageView'
pod '****-iOS-SDK-API', :path => '~/Documents/****_dev/****-ios-sdk-api-pod'
pod 'PSAlertView'
pod 'UITextField+Shake'
pod 'HexColors', '~> 2.2.1'
pod 'TSMessages'
pod 'TPKeyboardAvoiding'
pod 'DateTools'
pod 'SDWebImage'
pod 'PureLayout'
pod 'SZTextView'
pod 'ALAssetsLibrary-CustomPhotoAlbum', '~> 1.3'
pod 'UIActionSheet-Blocks', '~> 1.0'
pod 'DTPickerPresenter', '~> 0.2.0'
pod 'CCMPopup'
pod 'FranklySDK'
pod 'Instabug'
pod 'MZTimerLabel'
pod 'Google/Analytics'
end
Here, **** = My project name
After updating Xcode7 to Xcode 3 and migrate my code to swift 3, pods stopped working and show the following error.
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I made sure the app is opened from the right icon.
I removed Afnetworking from Pods so it show same error in another one and so on.
I make sure the bit_enabled is set to yes.
I deleted the pod file, and workspace, everything related to pod and start over, same issue.
I edited the scheme and nothing too.
I removed and added $(inherited) again but nothing.
removed Xcode and installed it again
made sure the Xcode is looking to Xcode 8 commas line.
the cocoa pod version is cocoapods-1.2.0.beta.3
also here is the pods file
target 'MondoTaxiClient' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
#use_frameworks!
pod 'SocketRocket’, '~> 0.4'
pod 'GoogleMaps', '~> 1.10.5'
pod 'FBSDKCoreKit', '~> 4.9'
pod 'FBSDKLoginKit', '~> 4.9'
pod 'Parse'
pod 'SDWebImage', '~>3.7'
# pod 'Fabric', '~> 1.6'
pod 'Fabric'
pod 'Digits'
pod 'TwitterCore'
pod 'Crashlytics'
pod 'APAddressBook/Swift', '~> 0.2'
pod 'ActionSheetPicker-3.0', '~> 2.0.3'
pod 'Mixpanel', '~> 2.9'
pod 'Branch'
pod 'Adjust', '~> 4.6.0'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Crash'
pod 'AFNetworking', '~> 3.1'
end
the code target was iOS 7 + but after xcode 8 i made it iOS8+
if the solution is by downgrade cocoa pods please let me know which version.
some of the pods are conflicting with some of the static SDKs, frameworks once the conflict is resolved the issue disappear
I've been trying to resolve this issue for 3 hours and I tried everything that's on the web but nothing seems to work, I'm just trying to add the (login in with Facebook) button on an app connected to parse.
I even started a new project from scratch to see if the same issue would appear and it did.
the error: (clang: error: linker command failed with exit code 1 (use -v to see invocation))
It appeared after doing 'pod install' in both apps, this is what I have in my Podfile:
platform :ios, '8.1'
xcodeproj 'carpoolup'
target :carpoolup, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
please help, what does this error mean?
Try adding use_frameworks! after the platform line to force cocoapods to use frameworks.
Example from cocoapods.org:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
I just upgraded Cocoapods and ran a pod install. after doing a hard clean and build I'm getting the following error:
ld: library not found for -lPods-HHRouter clang: error:
linker command failed with exit code 1 (use -v to see invocation)
I tried removing every reference to HHRouter and pulling the pod. It moved on to give me an error about another pod.
Here is what my podfile looks like:
platform :ios, '8.0'
# ignore all warnings from all pods
inhibit_all_warnings!
pod 'JDStatusBarNotification'
pod 'HHRouter', '~> 0.1'
pod 'ViewDeck', '2.2.11'
pod 'IQKeyboardManager'
pod 'MagicalRecord'
pod 'RSKImageCropper', '1.0.0'
pod 'UICollectionViewLeftAlignedLayout'
pod 'FLAnimatedImage', '~> 1.0'
pod 'CRToast', '~> 0.0.7'
pod 'SDWebImage', '~>3.7'
Am I missing anything?
I deleted all the settings behind Other Linker Flags, except $(inherited), and it went well.