I have a project using the following Podfile:
target 'XXX' do
pod 'Google/Analytics'
pod 'Google/SignIn'
pod 'HockeySDK', '~> 4.0.1'
pod 'GoogleMaps'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
pod 'TesseractOCRiOS', '4.0.0'
pod 'TOCropViewController'
end
this compiles and runs perfectly.
once I do $pod update then I get lots of updates, see below:
Analyzing dependencies
Downloading dependencies
Installing FirebaseAnalytics (3.2.0)
Installing FirebaseInstanceID (1.0.6)
Installing Google 3.0.3 (was 2.0.3)
Installing Google-Mobile-Ads-SDK 7.8.1 (was 7.8.0)
Using GoogleAnalytics (3.14.0)
Installing GoogleAppUtilities 1.1.1 (was 1.1.0)
Installing GoogleAuthUtilities 2.0.1 (was 2.0.0)
Installing GoogleInterchangeUtilities 1.2.1 (was 1.2.0)
Using GoogleMaps (1.13.2)
Installing GoogleNetworkingUtilities 1.2.1 (was 1.2.0)
Installing GoogleSignIn 4.0.0 (was 3.0.0)
Installing GoogleSymbolUtilities 1.1.1 (was 1.1.0)
Installing GoogleUtilities 1.3.1 (was 1.2.0)
Using HockeySDK (4.0.1)
Using TOCropViewController (1.3.7)
Using TesseractOCRiOS (4.0.0)
Generating Pods project
Integrating client project
Sending stats
Sending stats
Pod installation complete! There are 7 dependencies from the Podfile and 16
total pods installed.
then I try to build and I get the following error:
ld: file not found: /Users/user/Desktop/Personal/xxx/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
so I decided to delete the entry from Other Linker Flags ($(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a) and that problem went away, but now I get the following error:
ld: file not found: -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am on xcode 7.
any idea? this is driving me nuts.
thanks.
I resolved the problem on my own.
what I did was:
go to my project folder with finder
"show package content" for my project.xcodeproj
edit the file .pbxproj
delete the Other Link section for both debug and release
then I restarted xcode and all worked like a charm again.
phew!
Related
I am a beginner at app development.
I am making an app with flutter, and the following error occurred while building with ios.
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): No such module 'FBSDKCoreKit'
/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7
2
Could not build the application for the simulator.
Error launching application on iPhone 12.
Exited (sigterm)
But I never installed the facebook_auth package.
There is no flutter_facebook_auth in my pubspec.yaml file either.
But I keep getting the above error. Is there any solution?
Thank you for reading.
===============================================================
I did
flutter clean -> flutter pub get -> cd ios -> pod install -> run
And following is the result
/Users/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:109:16: warning: unused variable 'swf' [-Wunused-variable]
const char swf[3] = {'F', 'W', 'S'};
^
/Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:110:16: warning: unused variable 'swc' [-Wunused-variable]
const char swc[3] = {'C', 'W', 'S'};
^
4 warnings generated.
warning: [CP] Unable to find matching .xcframework slice in 'ios-arm64 ios-arm64_x86_64-simulator ios-arm64_x86_64-maccatalyst' for the current build architectures (arm64 x86_64 i386).
Command CompileSwift failed with a nonzero exit code
/Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
/Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
/Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:9:8: error: no such module 'FBSDKCoreKit'
import FBSDKCoreKit
^
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users//Downloads/GoogleService-Info.plist (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/ly/7jxqf41945g08nj820kfkblr0000gn/T/flutter_tools.QgWT3r/flutter_ios_build_temp_diruHeVSi/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): No such module 'FBSDKCoreKit'
/Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7
2
Could not build the application for the simulator.
Error launching application on iPhone 12.
Pod install result is fine.
This is the part of the pod install result
=================================================
pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAuth.swift:8:7 File contents:
facebookauth.swift file contents
===============================================
I found following-facebook auth related- messages when i run the app on real android device
error msg when running on android device
I resolve this error by doing
remove Podfile.lock and Pods
update Podfile with platform :ios, '12.0' and config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
pod install
I also set the iOS deployment target to be 12.0 in the PROJECT.
https://github.com/darwin-morocho/flutter-facebook-auth/issues/299
I modified my Podfile
platform :ios, '11.0'
and config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' (in my case, both version were not same. 11.0 <-> 9.0)
and the error changed like below:
FIRStorageTypedefs.h:29:19: note: declaration here is not visible
typedef NSString *FIRStorageHandle NS_SWIFT_NAME(StorageHandle);
So I did pod uninstall, update, install, update, install..... T___T
arch -x86_64 pod update
arch -x86_64 pod install
and change the version of these like this
firebase_auth: 4.1.0
firebase_core: 2.1.1
cloud_firestore: 4.0.3
firebase_storage: 11.0.3
firebase_messaging: 14.0.3
cloud_functions: 4.0.3
firebase_remote_config: 3.0.3
Addition:
my command line tools of Xcode are already installed
$xcode-select --install
error: command line tools are already installed
install ffi.. all failed
sudo arch -x86_64 gem install ffi
sudo arch -arm64 gem pristine ffi
Thanks to everyone
I had the same problem,
in the podfile was:
platform :ios, '13.0
...
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
in config.build_settings I changed the version from 9.0 to 13.0
and it helped
After i implement firebase Crashlytics on old project it has fabric.
i removed those pods :
pod 'Fabric'
pod 'Crashlytics'
and after
pod install
i see this error
ld: framework not found Fabric
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried many clean build folder and project. But It still stays in there. What should I do?
Solution
Goto your project target and Build Settings
search for "Other Linker Flags"
Delete :
-framework
"Crashlytics"
Crashlytics
If you want to upgrade, just follow the upgrade guide here:
https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=ios
If you want to just remove Crashlytics, use pod deintegrate
Only when using cocoapods(after run pod install), generamba setup failes with the following message when settin path to a .xcodeproj.
The path to a .xcodeproj file of the project is 'GrambaSample.xcodeproj'. Do you want to use it? (yes/no) yes
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object.rb:321:in `configure_with_plist': [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa. (RuntimeError)
This error won't appear is not using cocoapods.
How can I be able to setup Generamba while using cocoapods.
To avoid this issue you should update CocoaPods to the latest beta version by executing
gem install cocoapods --pre
Latest beta version of CocoaPods now using inputFileListPaths and outputFileListPaths.
More info here See .xcfilelist Support
After update pods i have received Unrecognized platform name error message in PINCatch Framework.I have try to find solution on google but not getting answer.
Below i have mention pods update logs :
Analyzing dependencies
Removing SIOSocket
Removing libjingle_peerconnection
Downloading dependencies
Using AFNetworking (3.1.0)
Using BFRImageViewer (1.0.32)
Using Bolts (1.8.4)
Using CocoaAsyncSocket (7.6.1)
Installing CocoaLumberjack 3.3.0 (was 3.2.0)
Installing Crashlytics 3.9.0 (was 3.8.6)
Using DACircularProgress (2.3.1)
Installing FBSDKCoreKit 4.27.1 (was 4.25.0)
Installing FBSDKLoginKit 4.27.1 (was 4.25.0)
Installing FBSDKShareKit 4.27.1 (was 4.25.0)
Using FLAnimatedImage (1.0.12)
Installing Fabric 1.7.0 (was 1.6.12)
Using InstagramKit (3.8)
Using KissXML (5.2.0)
Installing PINCache 3.0.1-beta.6 (was 3.0.1-beta.5)
Installing PINOperation 1.1 (was 1.0.3)
Installing PINRemoteImage 3.0.0-beta.13 (was 3.0.0-beta.11)
Using RSKImageCropper (1.6.3)
Installing TwitterCore 3.0.1 (was 3.0.0)
Installing TwitterKit 3.2.0 (was 3.0.4)
Using UICKeyChainStore (2.1.1)
Using XMPPFramework (3.7.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 13 dependencies from the Podfile and 22 total pods installed.
Error Image
XCODE Version 8.3.3 (8E3004b)
Deployment Target : iOS 9
Universal App (iPhone & iPad)
Let me know how to solve this error ?
I have the same error in CocoaLumberjack with Xcode8.
I solved it by use Xcode9.
(my Xcode version is 9.0.1)
When i am integrating pod file. I didn't get any error message before using cocoapods, now i am integrating cocoapods using Paypal-iOS-SDk. I got an error: If anyone know how to solve this error please tell me. My email id: kosuruudaysaikumar#gmail.com
Last login: Fri Jun 9 11:37:40 on ttys001
shyams-Mac-mini:~ shyamnarla$ cd /Users/shyamnarla/Downloads/Amaravati\
shyams-Mac-mini:Amaravati shyamnarla$ pod install
Analyzing dependencies
Downloading dependencies
Using Alamofire (4.0.1)
Using AlamofireImage (3.1.0)
Installing CardIO (5.4.1)
Using Firebase (3.9.0)
Using FirebaseAnalytics (3.5.1)
Using FirebaseCore (3.4.4)
Using FirebaseInstanceID (1.0.8)
Using FirebaseMessaging (1.2.1)
Using GoogleInterchangeUtilities (1.2.2)
Using GoogleMaps (2.1.0)
Using GooglePlacePicker (2.1.0)
Using GooglePlaces (2.1.0)
Using GoogleSymbolUtilities (1.1.2)
Using GoogleToolboxForMac (2.1.0)
Installing PayPal-iOS-SDK (2.17.0)
[!] Error installing PayPal-iOS-SDK
[!] /usr/bin/git clone https://github.com/paypal/PayPal-iOS-SDK.git /var/folders/b3/8tmw3ywx53vb9h7qvzgrpr2r0000gn/T/d20170609-2132-1pgwyuv --template= --single-branch --depth 1 --branch 2.17.0
Cloning into '/var/folders/b3/8tmw3ywx53vb9h7qvzgrpr2r0000gn/T/d20170609-2132-1pgwyuv'...
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] Automatically assigning platform ios with version 10.0 on target Amaravati because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.