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

ld: framework not found CoreServices for architecture x86_64 #21768

Closed
riseworld27 opened this issue Oct 13, 2018 · 18 comments
Closed

ld: framework not found CoreServices for architecture x86_64 #21768

riseworld27 opened this issue Oct 13, 2018 · 18 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@riseworld27
Copy link

riseworld27 commented Oct 13, 2018

Environment

  1. react-native -v:
  • react-native-cli: 2.0.1
  • react-native: 0.46.1
  1. node -v: v8.9.1
  2. npm -v: 5.5.1
  3. Target Platform: iOS 10.1
  4. Development Operating System: macOS Sierra 10.13
  5. Xcode 9.2

Result

Build Failed with following errors:

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

http://prntscr.com/l5l0vj

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@riseworld27
Copy link
Author

I am using react-native 0.46.1 and it shows Unrecognized command 'info' when run react-native info

@dloomb
Copy link

dloomb commented Oct 13, 2018

Update

Yes, upgrading to Xcode 10 seems to have fixed this issue for me.


I am also seeing this issue.

react-native info:

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.2
      CPU: x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
      Memory: 2.21 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.7.0 - ~/.nvm/versions/node/v10.7.0/bin/node
      Yarn: 1.7.0 - /usr/local/bin/yarn
      npm: 6.2.0 - ~/.nvm/versions/node/v10.7.0/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
    IDEs:
      Android Studio: 2.3 AI-162.4069837
      Xcode: 9.2/9C40b - /usr/bin/xcodebuild
    npmPackages:
      react: 16.5.0 => 16.5.0 
      react-native: 0.57.2 => 0.57.2 
    npmGlobalPackages:
      react-native-cli: 2.0.1

I only started seeing this when I tried to add the FacebookSDK via Cocoapods.

Doing some Googling, I think I have found that CoreServices was added to iOS in 12.0+ (See https://developer.apple.com/documentation/coreservices).
I am updating my Xcode now to see if that fixes the problem. Will report back after.

@riseworld27
Copy link
Author

I am using xcode 9.2 and the most recent facebook sdk. It caused the issue.
So downgraded facebook sdk and it resolved the issue.

Upgrading to xcode 10 resolved the issue too.
Thanks for your help.

@maulikdhameliya
Copy link

Check my info,
can anyone help please?

React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
Memory: 27.21 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 5.6.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:
Build Tools: 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.2, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.2, 27.0.3, 28.0.0
API Levels: 21, 22, 23, 24, 25, 26, 27, 28
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.3 => 0.57.3
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1

@bcgilliom
Copy link

This was happening for me with react-native run-ios and not in Xcode - changing to use command line tools 10.1 seems to have fixed it.

@devinvenable
Copy link

@risingworld777 I'm stuck on Xcode 9.2 at the moment. When you say downgrade the facebook sdk, do you mean downgrade the react-native version or something else?

This is not working for me.

React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: (4) x64 Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
Memory: 37.21 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.8.0 - /usr/local/bin/node
npm: 6.4.1 - /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
IDEs:
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.7 => 0.57.7
npmGlobalPackages:
react-native-cli: 2.0.1

@riseworld27
Copy link
Author

riseworld27 commented Dec 11, 2018

Hi @devinvenable
I downgraded only facebook sdk.
I guess you are still using high version of facebook sdk. So I suggest to downgrade a bit more.
You should use facebook sdk which was born before iOS 12 to continue with xcode 9.2

@preetluv
Copy link

i have xcode 9.2
framework not found CoreServices for architecture x86_64
this issue come
i have use react-native-fbsdk 0.6.3

@riseworld27
Copy link
Author

riseworld27 commented Mar 15, 2019

@preetluv I assume you have Facebook SDK in the Documents folder of your Mac.
You need to downgrade the Facebook SDK.

@phonganhhung9xtb
Copy link

i face same issue. how to resolve without upgrade xcode version?

React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 82.71 MB / 8.00 GB
Shell: 5.2 - /bin/zsh
Binaries:
Node: 10.6.0 - /usr/local/bin/node
Yarn: 1.0.2 - /usr/local/bin/yarn
npm: 6.1.0 - /usr/local/bin/npm
Watchman: 4.7.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: 23, 24, 25, 26, 27
Build Tools: 23.0.1, 23.0.2, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-26 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.7 => 0.57.7
npmGlobalPackages:
eslint-plugin-react-native: 3.2.1
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-rename: 2.4.1

@riseworld27
Copy link
Author

@phonganhhung9xtb Are you using facebook sdk in your project? If yes can you share fb sdk version?

@phonganhhung9xtb
Copy link

phonganhhung9xtb commented Apr 2, 2019 via email

@riseworld27
Copy link
Author

riseworld27 commented Apr 2, 2019

I used RN-fbsdk 0.6.0 and Facebook SDK <4.33.0 @phonganhhung9xtb

@phonganhhung9xtb
Copy link

phonganhhung9xtb commented Apr 2, 2019 via email

@riseworld27
Copy link
Author

Can you try to downgrade only Facebook SDK to 4.33.0?
If it doesn't work you should update Xcode. CoreServices was added to iOS 12.0+

@phonganhhung9xtb
Copy link

phonganhhung9xtb commented Apr 2, 2019 via email

@nirvo
Copy link

nirvo commented May 28, 2019

the issue was closed so I deleted my message here

Yes I use FBSDK

I create a new issuer #25063

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

No branches or pull requests

9 participants