Why can't XCode find GoogleMobileAds - ios

I know this has been asked before and I've reviewed the other answers. I have closed XCode and run pod install multiple times. When I re-open XCode I use the .xcworkspace project file. And I have checked that my target -> Build Phases -> Link Binary With Libraries section includes GoogleMobileAds.framework
So why am I still getting No such module 'GoogleMobileAds' as a build error?
(Note I did used to get a link error previously and following some other stackoverflow Q&A I deleted the directories that were showing up in link errors from the Library Search Paths.)

Try build your project once. It will first compile the pods project(thus compiling the GoogleMobileAds framework), then stop the build when it starts to compile your swift code, or you can let it finish if you want. After that, you should be able to see the framework and use it for auto-completion. I have personally found this much faster than to wait for Xcode to pre-build and index.

Related

ld: library not found for -lCocoaAsyncSocket - React Native

I have created a new react native project and when I try to run the app within an iOS emulator it always crashes.
When I open the .xcworkspace within Xcode I get the following error.
I have tried to update the search paths but this has not worked, I have also tried to reinstall pods but this hasn't worked.
This must be fixed on the framework side, however, the solution is the following steps:
On the Xcode bring the Build Settings tab
Find the Search Paths and then try to modify Library search paths
Add ${inherited} to the first of the list. It's important to be the first
Delete the build folder inside the ios folder of the project
Try to run the project again
It must fix the issue
This issue is basically related to the wrongly linking classes. Please follow these steps:
check make sure, you have install all the pods.
Please check your .js files, and check your import statements. To be make sure , every import statement package is installed in your project
clean project
Rebuild again
I can see that you state you have already checked search paths, but I had this same issue, and it was resolved by adding "${PODS_CONFIGURATION_BUILD_DIR}" as recursive to my Library Search Paths, under <Project> > Build Settings > Library Search Paths. However, now I'm stuck on the linker instruction -lcrypto, so it's not a complete solution.

Xcode 11.1 Error: Multiple commands produce

I see that there are several other questions regarding this problem.
Like: Xcode 10 Error: Multiple commands produce
I am asking this a new because it is for Xcode 11.1 and not older version and I think that the other questions have too many responses and people easily can get lost in them. Here we can try to answer using newer information with quicker access.
After update to Xcode 11.1 and update of cocoa pods ( no pods were actually updated, only the pods project was regenerated ).
I started to get the following error with FBSDK:
Multiple commands produce '/Users/myUser/Library/Developer/Xcode/DerivedData/myProject-euqkymjpeftprkgkcjyqpnkbalbr/Build/Products/Debug-iphoneos/FBSDKCoreKit-iOS/FBSDKCoreKit.framework/PrivateHeaders/FBSDKRestrictiveDataFilterManager.h':
1) Target 'FBSDKCoreKit-iOS' (project 'Pods') has copy command from '/Users/myUser/Documents/Workspace/myProjectDir/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKRestrictiveDataFilterManager.h' to '/Users/myUser/Library/Developer/Xcode/DerivedData/myProject-euqkymjpeftprkgkcjyqpnkbalbr/Build/Products/Debug-iphoneos/FBSDKCoreKit-iOS/FBSDKCoreKit.framework/PrivateHeaders/FBSDKRestrictiveDataFilterManager.h'
2) Target 'FBSDKCoreKit-iOS' (project 'Pods') has copy command from '/Users/myUser/Documents/Workspace/myProjectDir/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h' to '/Users/myUser/Library/Developer/Xcode/DerivedData/myProject-euqkymjpeftprkgkcjyqpnkbalbr/Build/Products/Debug-iphoneos/FBSDKCoreKit-iOS/FBSDKCoreKit.framework/PrivateHeaders/FBSDKRestrictiveDataFilterManager.h'
I let you know my case. It was related to a Cocoapod Library installed.
The normal steps to install a Cocoapod is, after running the pod install, then you use to go at your "import library section" in your project, then add it.
I removed the library from there, and the problem disappeared instantaneouslly.
Anyway, to use the library still you need to import it as always in your files.
import YourLibrary
class your {
}
Shows the place where the library must be removed from.
In my case the problem was the that those files :
FBSDKRestrictiveDataFilterManager.h
FBSDKRestrictiveDataFilterManager.m
were added twice in the FBSDKCoreKit-iOS project. I deleted the older ones ( by comparing the actual SDK code from GitHub ). I don't know who is to blame Cocoa Pods or Facebook, but if you get that error or some kind of similar one regarding the same file, I suggest that you check for file duplicates.

Missing framework in ios develop of Xcode

I have removed the framework from Xcode workspace and modified every place that importing that framework, and together with the building Parse of the project setting.
As there is no error showed in Xcode, I thought it's fine to compile, but during link time, there is error shows that the removed framework still needed.
Note that I have already cleaned the ~/Library/Developer/Xcode/DerivedData/ folder with rm -rf *
So how to check why this specific framework still needed to be linked? where to config that?
This shows that we are good with Xcode editor no error showed.
And this shows I have already removed the formwork cause the problem from the link parse
And here is the error when linking the project
The thing turns out to be I also have to remove the framework from
project -> build phases -> Embed Framworks

Xcode 7.3.1 Objective-C .h file not found (it is in a framework not a podfile)

This question seems to be a very basic one but I cannot find a solution on Stack Overflow or anywhere else that works for me so I am posting it here.
I have a .h file that is part of a framework - AWSCore/framework that the compiler states it cannot find.
In the past I have tried using Cocoapods unsuccessfully and do not wish to suffer that pain again - I must use frameworks for this implementation.
I have added the framework to the project and you can see the framework toolbox icon in the Project Navigator:
Opening the AWSCore Framework I can find the AWSCore.h:
With AWSCore.h highlighted, Xcode shows the correct location of the framework and .h file when clicking the arrow in the File Inspector:
If I select the target, go to Build Phases > Link Binaries With Libraries, I can see the framework file there as well:
Here is what I've tried:
1) Quit Xcode, start Xcode and clean project.
2) Quit Xcode, reboot.
3) Delete intermediate directories.
4) Select Target> Build Settings > Framework Search Paths > Debug > a non-recursive directory correctly points to where the framework resides.
5) Removed references to Framework and re-add Framework to project.
Additional information:
This project compiled and ran successfully yesterday.
I can archive it successfully with a distribution provisioning profile.
What have I missed?
Please do not recommend CocoaPods as a solution.

Xcode 6.1 Link Binary with Libraries; Framework not showing up

I'm having issues getting a framework to work when checking out my project from a repository. If I check out the project I get a build error:
'Module SQLite not found'.
I went into Build Phases and checked that everything was properly set. I tried deleting the entry under Link Binary with Libraries and then re-adding it. This is where the issue occurs. When I go to add the framework, again, it doesn't show up.
For other parts of the Build Phase: Target Dependencies and Copy Files I can delete the entries and re add them and the framework still shows up no problem.
Unfortunately, I don't have enough reputation to post photos but the links to the Xcode screenshots can be found here: http://imgur.com/a/OfWLm
I'm assuming it's a configuration error because all of the required files are in the repository as well as the checkout folder. So if anyone could assist me in figuring out what needs to be changed, that would be greatly appreciated.
Note I'm using Xcode 6.1 and the framework in question is SQLite.swift found here.

Resources