- When running the error first said can ' t be opened because it was from an unidentified developer, this is OSX own security settings too high, go to security option changed (Allow apps download from ANYW here). Also error said permission problem, so in terminal (Chmod-r 755/Project root directory) (idea: 755 must add a space after) all the files are changed to 755 permissions, and then you can run flawlessly.
- When debugging with simulator and real machine, the environment is different, in engineering APPDELEGATE.M-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: ( Nsdictionary *) Launchoptions method: Simulator debug with jscodelocation = [Nsurl urlwithstring:@ "http://localhost:8081/ Index.ios.bundle?platform=ios&dev=true "], Real machine debugging with jscodelocation = [Nsurl urlwithstring:@" http:// 10.18.51.27:8081/index.ios.bundle?platform=ios&dev=true "];
- Sever not found, not registered: Run react-native start in project root directory
- CocoaPods integration of third-party libraries, compile error symbol (s) not found for architecture arm64 add $ (linker) in other inherited Flags
- CocoaPods to find the header file in user header search path, add $ (Srcart)
- When the property is a function reference, if the reference function is useful to this, the bind method is required to pass this in
- In addition, the solution has been:
Files: rctwrapperviewcontroller.m
Method:-(void) Viewwillappear: (BOOL) animated
Insert the following sentence
Self.navigationcontroller.tabbarcontroller.tabbar.hidden=self.navigationcontroller.childviewcontrollers.count >1? Yes:no;
React–native trample the Pit to remember