Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbsdk IOS - framework not found CoreServices for architecture i386 #25063

Closed
nirvo opened this issue May 28, 2019 · 5 comments
Closed

fbsdk IOS - framework not found CoreServices for architecture i386 #25063

nirvo opened this issue May 28, 2019 · 5 comments
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@nirvo
Copy link

nirvo commented May 28, 2019

I am using FBSDK with RNN2, I get this issue when I compile IOS xcode project

ld: framework not found CoreServices for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
Binaries:
Node: 11.13.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
Android SDK:
API Levels: 26, 28
Build Tools: 27.0.2, 27.0.3, 28.0.3
System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.8 => 0.59.8
npmGlobalPackages:
create-react-native-web-app: 0.1.14
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

I set with Xcode :
Architecture : $(ARCHS_STANDARD)
Base SDK : 11.2
Build Active architecture Only : NO
Valid Architecture : arm64 armv7 armv7s i386

Can you give me help ?

@riseworld27
Copy link

#21768 (comment)

@nirvo
Copy link
Author

nirvo commented May 28, 2019

I have :
#define FBSDK_VERSION_STRING @"4.39.1"
#define FBSDK_TARGET_PLATFORM_VERSION @"v3.2"

package.json
"dependencies": {
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-fbsdk": "^0.8.0",
"react-native-navigation": "^2.20.2"
},

Which SDK should I install ?

@riseworld27
Copy link

You should use lower version of fbsdk.

So
"react-native-fbsdk": "^0.6.0",
FB iOS SDK: <4.33.0

or You can upgrade xcode version to 10.x

@nirvo
Copy link
Author

nirvo commented May 28, 2019

It is ok using react-native-fbsdk ^0.6.0 + FacebookSDKs-iOS-4.32.0 + Build Active architecture Only : Yes

but when I set Build Active architecture Only : NO, I get this error :
Undefined symbols for architecture i386:
"OBJC_CLASS$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTRootView", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@dulmandakh
Copy link
Contributor

It means that fbsdk doesn't include i386 binary. Closing this issue because it's not related to React Native.

@facebook facebook locked as resolved and limited conversation to collaborators May 31, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label May 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants