Skip to content

react-native-unimodules=0.10.1 && react-native=0.63.2

Notifications You must be signed in to change notification settings

watanabeyu/rn-update-repo

Repository files navigation

install and run

# iOS
$ cd ios
$ pod install
$ cd ../
$ npm run ios

# Android
# open android directory by android studio for create local.properties
$ npm run start
$ npm run android

react-native v0.61.4 -> v0.63.2

react-native v0.60.4 -> v0.61.4

react-native v0.59.8 -> v0.60.4

error

Invariant Violation: "main" has not been registered. or Invariant Violation: "RNUpdateRepo" has not been registered.

  • if use import { registerRootComponent } from 'expo', error happend on android.
  • if use AppRegistry.registerComponent, error happend on ios.
  • So decided to take it all out.

Could not find or use auto-linked library 'swiftObjectiveC' any other

swiftObjectiveC

  • check Project > Build Settings > Library Search Paths
  • if blank here, add below params

searchpaths

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

Undefined symbol: _swift_getFunctionReplacement

macros

  • check Project > Build Settings > Preprocessor Macros
  • add FB_SONARKIT_ENABLED=1 DEBUG value

deadcode

  • check TARGETS > Build Settings > Dead Code Stripping
  • Dead Code Stripping = YES

This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.

swift swiftstandard

  • Add New file Swift File
  • Would you like to show configure an Objective-C bridging header? -> Create Bridging Header
  • check Project > Build Settings > Always Embed Swift Standard Libraries
  • set YES

Could not connect to development server after update

<application
       ....
       android:usesCleartextTraffic="true"
       android:theme="@style/AppTheme">

task wrapper(type: Wrapper) -> wrapper

  • wrapper error in build.gradle.
- task wrapper(type: Wrapper) {
+ wrapper {

local.properties error

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/path/to/app/android/local.properties'.
  • fix -> open android studio

debug.keystore not found for signing config 'debug'.

* What went wrong:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file '/path/to/app/android/app/debug.keystore' not found for signing config 'debug'.
  • remove signingConfigs from /path/to/app/android/app/build.gradle