Problems with CocoaPods GoogleCloudMessaging (Xcode 7.2) - objective-c

I added GoogleCloudMessaging with CocoaPods to the project.
The file "Pods" contains the following code:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
dependency 'libPusher', '1.1'
pod 'Google/CloudMessaging'
After install I had problems with library -lPods, but the problem was solved by removing the content of Build Settings -> Linkers -> Other Linkers Flags.
As result I got next error:
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have solved the problem: it was necessary to use the
$ pod update
from the terminal

Related

React-native - Error on deploy app to xcode - directory not found for option '-L-L/Users/...'

I have a problem on deploy my app to xcode after run command below:
pod install
After run this command, dependencies was installed correctly:
When I tried to compile and deploy again, I had the several erros like this:
1) Target 'XXX' (project 'XXX') has copy command from '/Users/XXX/Documents/projects/react-native/tasks/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-bbklwsxeibuqhtduldwfhgorkgcg/Build/Products/Debug-iphonesimulator/XXX.app/Zocial.ttf'
2) That command depends on command in Target 'XXX' (project 'XXX'): script phase “[CP] Copy Pods Resources”
To fix it, I change build system of xcode:
But now, I have the following issue:
ld: warning: directory not found for option '-L-L/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-bbklwsxeibuqhtduldwfhgorkgcg/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Problem solved with this link:
https://github.com/react-native-community/upgrade-support/issues/36

React Native Xcode build error on react-native-linear-gradient (-lBVLinearGradient)

I have followed all installation process according to the github page for react-native-linear-gradient.
But when I try to compile for ios (both through react-native run-ios command and Xcode), I get the following error:
ld: library not found for -lBVLinearGradient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've already opened the project through xcworkspace in which most suggests so when using Cocoapods, but the error persists anyhow.
Any clue on this?
I was having the same problem after upgrading 0.62.1 and the following did the trick for me:
Switched my project to new build system (was using legacy)
Manually deleted the .xcworkspace in ios folder
Removed app from simulator (also deleted all derived data) see how
rm -rf node_modules && sudo yarn install
cd ios && pod deintegrate
pod install
Run project in xcode
This worked for me, hope it can help someone

ld: warning : Xcode 8.3.2 build upload secsses but not see the build in iTunes connect activity

ld: warning : Xcode 8.3.2 build upload success, but not see the build in iTunes connect activity
This is my podfile :
pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'Firebase/Crash'
I try to update cocapods : sudo gem install cocoapods
and after this : pod update
And its still have this 3 warning
Apple Developer Forums :
https://forums.developer.apple.com/thread/75793
ld: warning: Linker asked to preserve internal global: '__block_literal_global'
ld: warning: Linker asked to preserve internal global: '__block_descriptor_tmp'
ld: warning: Linker asked to preserve internal global: 'sharedInstance.sharedInstance'
I solved this problem after I run this in terminal :
cd ~
mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

Getting error in Adjust library, Integrated with Pods

I am getting this error:
ld: library not found for -lPods-Adjust
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added this to my Podfile:
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.2.5'
I have installed pods successfully, but still get the above error.
After running pod install, make sure that you are opening the .xcworkspace instead of the .xcproject in Xcode to be able to build and use Pods in your project.

Linker error when launching tests after a Project Clean with cocoapods

I've recently adopted cocoapods in my project, and everything seems to work fine except for a small annoying thing.
Before cocoapods, hitting cmd+u would have compiled my entire project and run tests; after adding cocoapods if I hit cmd+u after a project clean (Product->clean or shift+cmd+k) I receive a linker error, precisely:
//{Path_To_My_app} is the path to my app's folder and {MyAppName} is my app's name
ld: file not found: /Users/my_name/{Path_To_My_app}/Build/Products/Debug- iphonesimulator/{MyAppName}.app/{MyAppName}
clang: error: linker command failed with exit code 1 (use -v to see invocation)
to make it work I have to build it first and than hit cmd+u.
To be precise I can't remember if this was so before, but I'm pretty sure it wasn't...I can't seem to understand why this happens, and why hitting "cmd+u" is not building the project and than running the tests.
EDIT
I have specified in my podfile to add some pods just to my test target, so it is like:
platform :ios, "7.0"
pod 'SVProgressHUD', :head
pod 'GoogleAnalytics-iOS-SDK', '~> 3.0.7'
pod 'TestFlightSDK', '~> 3.0.2'
target "MyTestTarget" do
pod 'OCMock', '~> 2.2.4'
end