I am having awful problems all day trying to import SCLAlertView framework into my iOS 10 project. It is found here: https://github.com/vikmeup/SCLAlertView-Swift
I have tried everything. Copy and pasted the files into the project, added the .framework file as a framework, but I constantly get the error: No such module 'SCLAlertView'
Any advice would be greatly appreciated!
Configuration
2 steps you need to do before using the framework
1- after installing the pod , you need to open the project from now on using the .workspace file (it will be in the same path of your project directory)
2- open the .workspace project and build your project
it will work i tried it now using swift 3.0
Related
I'm experiencing this issue on a brand new Sierra setup, with Xcode 8.1.
I have a framework target for iOS, the target builds fine, but when I try to build for test the build fails with this error:
Opening import file for module 'XCTest': Not a directory
I looked at these questions already, but their suggestions are not useful for us:
Opening import file for module 'Swift': Not a directory
<unknown>:0: error: Opening import file for module 'Swift': Not a directory
All the settings in the project are pretty standard.
The cause of this issue was quite bizarre.
It was happening in a CI box on which I had installed Xcode 8.1 via the MAS. In our company we provision CI boxes using xcode-install, but for some reason that I don't remember I wasn't able to do so on this one.
To mimic xcode-install's behaviour I renamed Xcode.app into Xcode-8.1.app, and created an alias of it called Xcode.app.
This is where the issue was. The alias I created wasn't a proper symbolic link. Xcode.app wasn't actually a folder.
I realised this when trying to perform a command line build that referenced some system framework other than Foundation/UIKit... It failed saying that it couldn't find the framework inside Xcode.app/....
Once I made Xcode.app into a proper symlink everything worked.
How do I add an external library to my xcode project?
Currently I'm trying to add this camera library , and I thought it was just about adding the pod and installing it but when I try to add the import LLSimpleCamera I get no such module "LLSimpleCamera".
Any help?
Could you be opening Animal-Spotting.xcodeproject file instead of Animal-Spotting.xcodeworkspace?
You could always try the classic "clean build & delete the derived data"
I have found lots of suggestions on how to solve this error, but none have worked for me. I'm trying to build a framework that use the official Chromecast Framework. I get this error when I try to import Chromecast Framework:
I have created a very simple xCode project that recreates this error here.
How do I solve this (using xCode 7.1)?
This is a tricky one, the secret is to extract all the framework contents (headers files and static library) and include it on the project.
So, let's first extract the files and add to the project all this files:
Then make sure change all the references on your GoogleCast.h file (removing the imports using the framework "<>":
Now, select each header and put as a public header on Target Membership section:
And finally add the import on your .h file, remember put this import at the end of the file:
I create a sample project, you can downloaded here: https://dl.dropboxusercontent.com/u/31580788/TestChromecast.zip
If you are running a Swift project with Cocoapods, adding use_frameworks! inside your podfile will resolve this issue.
Don't forget to do a pod install after update though.
Cheers.
I Am able to get the alamofire cocoapod imported into the project, but when I try to use the pod, Xcode does not seem to recognize that it is there.
Edit: I am working from the XCWorkspace
Are you opening the .xcworkspace instead of the xo.xcodeproj?
I'm not entirely sure of your problem, but if they're in your project but you can't use them in code, did you make sure to import them at the top of the file you're trying to use them in?
I have gone through this document :Getting Started with the Facebook SDK for iOS v3.1
I have successfully configured my Xcode project by following it.
But I want to do it without adding the Facebook.framework.
As previously we used to only add the "src" folder which we used to clone from :Facebook SDK for iOS - Github. Why can't I just copy the "src" folder and configure my project.
I want to play around with FBFriendPickerViewController.m (dot m) file. Which I am not able to view if I follow the standard tutorial. But is available in the "src" folder.
Please how can I do that ? And it also seems that FbGraph.h file doesn't exist.
Please help.
If you want to play with the source, go to:
https://github.com/facebook/facebook-ios-sdk/
After getting the code, run this script to build the framework locally:
<Install Location>/scripts/build_framework.sh
This will drop the framework in the folder:
<Install Location>/build
Follow the same instructions in the Getting Started to include the Facebook SDK, however, you will get the framework from your local build folder.
Note: You'll likely have to modify the build search path in Xcode if you're swapping out, say one of the sample projects (that was looking for the Framework in a particular place).