React–native trample the Pit to remember

Source: Internet
Author: User

  1. 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.
  2. 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 "];
  3. Sever not found, not registered: Run react-native start in project root directory
  4. CocoaPods integration of third-party libraries, compile error symbol (s) not found for architecture arm64 add $ (linker) in other inherited Flags
  5. CocoaPods to find the header file in user header search path, add $ (Srcart)
  6. When the property is a function reference, if the reference function is useful to this, the bind method is required to pass this in
  7. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.