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

Can't upgrade from 0.62.2 to 0.63.3 after Xcode update that crashed my app. #116

Open
fffaria opened this issue Oct 7, 2020 · 2 comments
Labels

Comments

@fffaria
Copy link

fffaria commented Oct 7, 2020

Environment

System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Memory: 266.89 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.3.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.0. - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
Android SDK: Not Found
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5900203
Xcode: 12.0.1/12A7300 - /usr/bin/xcodebuild
Languages:
Java: 14.0.2 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found

Upgrading version

0.63.3

Description

After Xcode and Mac updated, my app could not load the libraries properly. Images were not working, as well as other components for some reason. I have made some research and it was because of the faulty Xcode update they handled. (More details in this issue I have opened).

I have seen people saying that upgrading to 0.63 solved the problem. However, I did not manage to update it successfully. My project began in RN 0.61.2 and I have only managed to update to 0.62.2. It probably has some file differences if starting a brand new app at 0.62.2.

I have followed the Upgrade Helper and I have applied the patch-package, but none of them successfully upgrades to 0.63.3.

Errors:
Changing the package.json only (RN 0.62.2 to 0.63.3).
When building the app, I immediately get this error:
In file included from .../node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.cpp:8: .../node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.h:15:10: fatal error: 'ReactCommon/CallInvoker.h' file not found #include <ReactCommon/CallInvoker.h>

I have followed this method but the same error happens.

Using patch-package and Upgrade Helper
When building the app, Metro is executed, however, a huge error log is shown with this error at the end:

`ld: warning: directory not found for option '-L-L/Users/.../Library/Developer/Xcode/DerivedData/Project-dnhaxcpjqvjtxjbqrzsimsmqaebh/Build/Products/Debug-iphonesimulator/BoringSSL-GRPC'
ld: library not found for -lBoringSSL-GRPC
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld /Users/.../Library/Developer/Xcode/DerivedData/Project-dnhaxcpjqvjtxjbqrzsimsmqaebh/Build/Products/Debug-iphonesimulator/Project.app/PlugIns/ProjectTests.xctest/ProjectTests normal x86_64
(1 failure)`

I have removed all the quotes from the Library Search Paths like this reply shows but the error persisted.

Reproduce demo

  1. Create an RN project at Version 0.61.2
  2. Update the same project to Version 0.62.2
  3. Update it to Version 0.63.3

I am able to return to 0.62.2 at any time. I appreciate the time taken to read all this! Thanks!

@danleveille
Copy link

@leminur I'm having the same issue. Did you get this resolved?

@MujtabaFR
Copy link

I had similar issue after upgrading to RN 0.64.0

ld: library not found for -lBoringSSL-GRPC

The problem was In LIBRARY_SEARCH_PATHS (Project -> Build Settings -> LIBRARY_SEARCH_PATHS) I had this

"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)",
"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)",
"$(inherited)"

Removing the quotes solved the issue

$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME),
$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME),
$(inherited)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants