I followed this tutorial Xcode 6 Tutorial: iOS 8.0 Facebook Login in Swift.
But inside my Bridge-Header.h Xcode gives me an error in the import line (#import <FacebookSDK/FacebookSDK.h>): 'FacebookSDK/FacebookSDK.h' file not found
What should I do?
Thank you.
I had the same error when moving my project to another location. If you remove the FacebookSDK.framework from your project and add it again, the "file not found" error should disappear. Keep in mind that you must not check "Copy items ..." when adding the Facebook framework.
Related
This might be some old issue already, but i've been working up for quite few days to fix this now. After submitting app to appstore i get this email :
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
Once these issues have been corrected, you can then redeliver the corrected binary.
I've tried some suggestions as given in the similar questions at
- first - second - third and more
most of them suggested trying "Embedded content contains Swift" or update "command line tools" or try manual "framework" fix but none worked.
Anyone found the solution yet?
If you have used any Swift code in Objective C Project
then, go to Build Settings -> Embedded Content Contains Swift Code to Yes or vice-versa.
Then again archive your project and upload the new build to Appstore.
I have included CFNetwork.framework in my app. And later when not required i just right click and deleted by mistake. Now my iPhone app is not getting built saying CFNetwork.h is missing.
In add libraries I searched but couldn't find the framework in the list.
(1) Is there any way to recover the deleted CFNetwork.framework.
(2) Is there any way to download this framework and add it to the Xcode or SDK ?
Try this
1.Go to summary in xcode
2.Click the + button below linked binaries and frameworks
3.From there select your desired frame work and then click add
Now you have successfully added your framework to your project
I am building an iPhone app which uses Facebook iOS SDK and Three20. I have created App with UITabBarController from scratch. Facebook User sign on working on right now but when I tried to get files in Three20 I am getting an error of "Three20/Three20.h" No Such file exists.
SO this is what I have do so far.
1. Created my project from scratch
2. Cloned the facebook ios sdk and drag drop src folder of it into my project
3. Cloned the three20 and run the python script given on the documentation of the site. Which seemed to be working becoz I am not getting any error on terminal.
4. Now when I tried to inlude Three20.Three20.h I am getting in an error that there is no such file.
Can any one tell me what I am doing wrong.
Regards,
Sumit.
Check your "Other Linker Flags". Make sure you have -ObjC in there. You may want to verify that your "Header Search Paths" are correct as well.
This screen shot shows an example of the Header Search Paths
After building and archiving my application, I open up ArchiveInfo.plist that's in the folder with the app and it contains some invalid data. The Bundle Identifier is misspelled. I have looked around everywhere in my XCode project for the exact same misspelling, but cannot seem to find it. Any help?
I had first written the app in an old Xcode and for iOS 3 so when trying to submit it for iOS 4 it was having this problem. I just recreated the project.
AVFoundation.framework is not where the documentation says it should be. I have iPhone SDK 2.2 installed (never had previous sdk versions installed) and I can't find that folder under /System/Library/Frameworks
I did find it under
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk/System/Library/Frameworks/
folder but if I add it from that location, then the compiler can't find the header files. I tried copying the entire AVFoundation.framework folder to /System/Library/Framework, but it still can't find the header files.
How can I use AVFoundation classes?
Thanks,
Alex
I've used the AVFoundation classes in my code, and added it the same way you did. You cannot browse the headers for some unknown reason, but putting this in your classes header file compiles just fine:
#import <AVFoundation/AVAudioPlayer.h>
I've submitted my app and had it approved, so I don't think there's anything wrong with this approach. The AVFoundation reference remains red in XCode, but it seems to work fine. Deleting the framework reference causes compile errors, so it definitely needs to be there.
I was having all sorts of problem until I realized I have to change the "active executable" to "iPhone Simulator 2.2" too. Here's the steps I took:
Add the AVFoundation framework to your project. Ctrl-click on Frameworks folder and select "Add existing frameworks". The default framework directory in "/System/Frameworks" may not contain the new AVFoundation framework file, so you will need to navigate very deep into the iPhone SDK directory to find the file. I found mine in /Developer/Platforms/iPhoneSimulator.platform/developer/SDKs/iPhoneSimulator2.2.sdk/System/Library/Framework. (Yes, it is that deep!!).
Now from your XCode, select your Active SDK to be "Simulator - iPhone OS 2.2" and select your "Active Executable" to be "iPhone Simulator (2.2)"
That solved the problem for me. Hope yours is the same issue.
I found mine at:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks