I guess I'm not linking the Facebook SDK properly with my project. Here's the error I get:
clang: error: no such file or directory: '/Users/username/Library/Developer/Xcode/DerivedData/Whatto-fotukpkslfnxvzbjmykxitdwkyds/Build/Products/Debug-iphonesimulator/libfacebook_ios_sdk.a'
This is an ARC iOS project. Any help would be great.
fyi: the Facebook libfacebook_ios_sdk.a library is red in the Build Phases/Link Binary With Libraries area under Project targets.
thanks
I would suggest dragging and dropping the library in the Project Navigator, then doing a clean followed by a build.
It sounds like you've added the facebook-ios-sdk Xcode project into your project... try just importing the contents of the FBConnect group. No need to include the project files.
Related
I am using the react-native-twitter-signin plugin for twitter login in iOS, but I am not able to build the release build in iOS as it shows:
Apple Mach o- linker issue:
/Documents/Example-fnshwaxexazdtybaedpmgfxfynrx/Build/Intermediates.noindex/ArchiveIntermediates/Example/BuildProductsPath/Release-iphoneos/libRNTwitterSignIn.a
The same application is running perfectly in Debug Mode on iOS:
I have already linked the libRNTwitterSignin.a under linked binary with libraries
Does anyone know a solution to this problem?
I faced the same issue, finally did like below.
please add RNTwitterSignIn to Target Dependences of build phases.
It will fix that.
I need to use a third-party SDK which must be added as aar or android project library.
I tried to unzip the aar and copy the /lib and /res files to my titanium android module project, but it didn't work.
the error looks like this:
The developer of the SDK tell me check out a link which is FATAL EXCEPTION: java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$layout
I don't know how to solve it, hope someone could help me, thanks
Because Titanium is a Javascript cross platform tool to build native apps, you will need to write a wrapper to get a native functionality to work.
You can check out the documentation how to this on the Appcelerator website.
Unfortunately you can't just drop in a native component.
I am using the GoogleMaps iOS SDK in my app and added it with cocoapods. However, after updating xCode from 7.0 to 7.1 I'm suddenly getting the following error: Could not build Objective-C module 'GoogleMaps'
In addition xCode also gives me an error in the GoogleMaps.h file in the GoogleMaps.framework:
Include of non-modular header inside framework module 'GoogleMaps'
I already deleted my DerivedData folder, updated cocoapods, reinstalled the GoogleMaps iOS SDK and cleaned and build the framework's scheme and my app's scheme. But nothing helped so far.
Answered in this similar question: xCode 7 error: include of non-modular header inside framework module with Google Maps
...but essentially you'll need to create an Objective-C bridging header file whereas you may not have needed one with Xcode 7.0. The why still eludes me.
you should open the .xcworkspace not .xcodeproj
once you added cocoa pods your project folder will contain the .xcworkspace file
I am new to Facebook SDK with iOS. I want to send invitation to friends on Facebook for using my app for this I am using Facebook (developer.facebook.com)sdk api I have registered my app installed sdk and imported framework. After importing got error as,
ld: warning: directory not found for option '-
F/Users/vijaywebsolutions/Documents/FacebookSDK'
ld: framework not found FacebookSDKkk
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Why don't you try CocoaPods for your projects its the dependency manager for Objective-C projects.
Refer CocoaPods
Simple Setup
Open Terminal and type sudo gem install cocoapods
Once installed you need to create a simple Pod file in your project directory and add the dependency to that file example.
Go to your project root directory and create Pod File by typing in terminal touch Podfile
Once created add the following line to the podfile.
platform :ios
pod 'Facebook-iOS-SDK', '~> 3.11.0'
Save the file and then in the terminal(where pod file exist) run pod install
Now it will install the requested dependencies and will create a Workspace for your project, you don't need to take any effort to configure it.
Its the best way to manage your dependencies. Give it a try you won't regret.
First you have to include facebook sdk in you project, steps as follows :
click on your project folder in xcode.
go to general tab and find Linked framework and libraries.
in that click on + sign and provide path to FacebookSDK.framework
These steps will facebook sdk in your project.
Then you have to import it in any of .m file where you want to use is it. like following line :
#import <FacebookSDK/FacebookSDK.h>
I also ran into similar error when integrating FacebookSDK into my app. I have added the framework in the Link Binary with Libraries, however, error persisted. One important thing to note when app is built, is it should be build against source Facebook iOS SDK and NOT binary SDK. I got latest source from here Facebook iOS SDK, downloaded Bolts-iOS and XCTOOL and then ran build_framework.sh Once completed, copied FacebookSDK.framework to my app and everything worked perfect.
I'm new to Xcode and Objective C development and I'm attempting to import the github MailCore
InboxListener example Xcode project for the Mac OSX environment. I followed the Mac OSX instructions from MailCore's website and the project builds but doesn't run. MailCore seems dependent on /System/Library/Frameworks/CFNetwork.framework which doesn't exist in my /System/Library/Frameworks/ directory on my Mac OS X 10.7.5.
CFNetwork.framework does exist in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks, but why doesn't MailCore know where to find it? How do I change the location MailCore is using?
I've tried linking CoreServices.framework and CFNetwork.framework in the Build Phases, link with binaries without success. Same runtime error.
Output when Running:
dyld: Library not loaded: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
Referenced from: /Users/cgray/Library/Developer/Xcode/DerivedData/InboxLister-hjoeknampqddvifxyoqwhozaricj/Build/Products/Debug/MailCore.framework/Versions/A/MailCore
Reason: image not found
(lldb)
It was a brain teaser for me!
I resolved to set the SDK 10.7 in any project and targets of your project, of Mailcore and the Libetpan library.
Then select the libetpan project in the Project navigator and check:
open the CoreService.framework and check if there is the CFNetwork.framework (look below). If it not exists your code cannot include the SDK 10.7 where CFNetwork is under the CoreService umbrella framework.
select "static libetpan" target and check in your "Link Binary With Libraries", you should found the CoreService.framework. If there isn't add it (you can also drag&drop from the Project navigator)
Clean and build, it should work!