RCT Linking Manager file not found

后端 未结 5 550
你的背包
你的背包 2021-02-01 14:17

I want to use react native library RCTLinkingManager which shows up in menu under \"Libraries > RCTLinkingManager.xcodeproj\".

However when i add it to

相关标签:
5条回答
  • 2021-02-01 14:28

    I had a similar issue only when I've done the archive/release version... that happen because the import was made under the #if DEBUG. So make sure you put the import in the proper place otherwise you can get Use of undeclared identifier 'RCTLinkingManager' error

    0 讨论(0)
  • 2021-02-01 14:28

    If you are using React Native and the command line, Sébastien's modification proposal is to be made to ios/<yourproject>.xcodeproj/project.pbxproj by adding

    "$(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS",
    

    to the HEADER_SEARCH_PATHS lists (4 locations)

    0 讨论(0)
  • 2021-02-01 14:28

    Anyone who is facing this issue for a react-native archive for ios platform just place

    #import <React/RCTLinkingManager.h>" 
    

    after the first line

    "#import "AppDelegate.h"" in the AppDelegate.m file.
    
    0 讨论(0)
  • 2021-02-01 14:29

    Kindly make sure that you place the

    #import <React/RCTLinkingManager.h>
    

    in the Appdelegate.m file above the

    #ifdef FB_SONARKIT_ENABLED
    

    it worked for us.

    0 讨论(0)
  • 2021-02-01 14:31

    You have to add $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS to your "Header Search Paths" in the Build Config of your project. You can find more info on the official React documentation

    0 讨论(0)
提交回复
热议问题