1. React Native CFBundleIdentifier Not Exist
Node_modules /react-native/ios-install-third-party. Sh The command output is incorrect. The possible cause is the network.
Manually download
- Github.com/google/glog…
- Github.com/google/doub…
- Github.com/react-nativ…
- Github.com/facebook/fo…
1. Put ~/.rncache/. 2. Decompress to node_modules/react-native/third-party/
Glob config.h 1 is missing when running in Xcode. Run the CD node_modules/react-native/third-party/glog-0.3.4 2 command. Run.. /.. /scripts/ios-configure-glog. Sh will find that the script helps generate many things, including config.h
2. Unknown argument type ‘attribute‘ in method -[RCTUIManager setJSResponder:blockNativeResponder:]. Extend RCTConvert to support this type.
Path: the project/node_modules/react – native/react/Base/RCTModuleMethod. Mm. (or. M) files to find the static BOOL RCTParseUnused replaced with this method
static BOOL RCTParseUnused(const char **input) { return RCTReadString(input, “__unused”) || RCTReadString(input, “attribute((unused))”) || RCTReadString(input, “attribute((unused))”); }
3. The app ‘s Info. Plist must contain an NSMicrophoneUsageDescription key
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
Copy the code
1. Locate the info.plist file in the project and right click to open Source Code 2. Add the following key-value pairs, using PhotoLibrary as an example
< key > NSPhotoLibraryUsageDescription < / key > < string > this App need your approval to read the media database < / string >Copy the code
4. The IOS packaging
react-native bundle –entry-file index.js –platform ios –dev false –bundle-output release_ios/main.jsbundle –assets-dest release_ios/
5. Failed to resolve com. Android. Support: appcompat – v7:23 + solution
This may be caused by the inconsistency between the Android SDK Tools version and the Android SDK Build Tools version. To find the cause, click SDKmanager
Look at the build.gradle file in the Module
The build.gradle file in module is marked with the corresponding Android SDK Tools version. If mine is 26; Then try again compiles;Copy the code
Reference links: blog.csdn.net/wangqiang82…