library not found for -lRCTOrientation










0















I'm very beginner in React Native, I build a mobile application which is working OK an android, but when I tried to generate the IPA for iOS using Xcode, I faced this issue



ld: library not found for -lRCTOrientation
clang: error: linker command failed with exit code 1 (use -v to see invocation).


RCTOrientation is shown in red color and i can't find this package in my project folder
enter image description here










share|improve this question




























    0















    I'm very beginner in React Native, I build a mobile application which is working OK an android, but when I tried to generate the IPA for iOS using Xcode, I faced this issue



    ld: library not found for -lRCTOrientation
    clang: error: linker command failed with exit code 1 (use -v to see invocation).


    RCTOrientation is shown in red color and i can't find this package in my project folder
    enter image description here










    share|improve this question


























      0












      0








      0








      I'm very beginner in React Native, I build a mobile application which is working OK an android, but when I tried to generate the IPA for iOS using Xcode, I faced this issue



      ld: library not found for -lRCTOrientation
      clang: error: linker command failed with exit code 1 (use -v to see invocation).


      RCTOrientation is shown in red color and i can't find this package in my project folder
      enter image description here










      share|improve this question
















      I'm very beginner in React Native, I build a mobile application which is working OK an android, but when I tried to generate the IPA for iOS using Xcode, I faced this issue



      ld: library not found for -lRCTOrientation
      clang: error: linker command failed with exit code 1 (use -v to see invocation).


      RCTOrientation is shown in red color and i can't find this package in my project folder
      enter image description here







      ios xcode react-native






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 10:13







      Omar

















      asked Nov 14 '18 at 15:48









      OmarOmar

      64




      64






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try:



          1)
          - in Xcode make sure you have followed these 3 steps:



          a) Add node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj to your xcode project, usually under the Libraries group



          enter image description here



          It should show up somewhere in a list like this:



          b) add libRCTOrientation.a (from Products under RCTOrientation.xcodeproj) to build target's Linked Frameworks and Libraries list



          It should show somewhere in a list like this:



          enter image description here



          c) Add $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/ to Project Name -> Build Settings -> Header Search Paths



          Make sure that path is correct, in my case I had to add /../ inside it, as above for my RN project, the rn-orientation docs specify that without /../.



          • in Xcode go to Product menu and run Clean build folder

          • run react-native run-ios

          If it still doesn't work try



          2) Xcode go to Product menu, Schemes, Edit schemes, Build and make sure parallelized build is NOT enabled in Build Options
          enter image description here



          If it still doesn't work:



          3) try to clean all the caches and restart npm:



          rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache



          If you don't have yarn installed just replace yarn word with npm in the above command.



          Source for Xcode add library steps: https://github.com/yamill/react-native-orientation






          share|improve this answer

























          • Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

            – Omar
            Nov 15 '18 at 10:30











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303982%2flibrary-not-found-for-lrctorientation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Try:



          1)
          - in Xcode make sure you have followed these 3 steps:



          a) Add node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj to your xcode project, usually under the Libraries group



          enter image description here



          It should show up somewhere in a list like this:



          b) add libRCTOrientation.a (from Products under RCTOrientation.xcodeproj) to build target's Linked Frameworks and Libraries list



          It should show somewhere in a list like this:



          enter image description here



          c) Add $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/ to Project Name -> Build Settings -> Header Search Paths



          Make sure that path is correct, in my case I had to add /../ inside it, as above for my RN project, the rn-orientation docs specify that without /../.



          • in Xcode go to Product menu and run Clean build folder

          • run react-native run-ios

          If it still doesn't work try



          2) Xcode go to Product menu, Schemes, Edit schemes, Build and make sure parallelized build is NOT enabled in Build Options
          enter image description here



          If it still doesn't work:



          3) try to clean all the caches and restart npm:



          rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache



          If you don't have yarn installed just replace yarn word with npm in the above command.



          Source for Xcode add library steps: https://github.com/yamill/react-native-orientation






          share|improve this answer

























          • Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

            – Omar
            Nov 15 '18 at 10:30
















          0














          Try:



          1)
          - in Xcode make sure you have followed these 3 steps:



          a) Add node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj to your xcode project, usually under the Libraries group



          enter image description here



          It should show up somewhere in a list like this:



          b) add libRCTOrientation.a (from Products under RCTOrientation.xcodeproj) to build target's Linked Frameworks and Libraries list



          It should show somewhere in a list like this:



          enter image description here



          c) Add $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/ to Project Name -> Build Settings -> Header Search Paths



          Make sure that path is correct, in my case I had to add /../ inside it, as above for my RN project, the rn-orientation docs specify that without /../.



          • in Xcode go to Product menu and run Clean build folder

          • run react-native run-ios

          If it still doesn't work try



          2) Xcode go to Product menu, Schemes, Edit schemes, Build and make sure parallelized build is NOT enabled in Build Options
          enter image description here



          If it still doesn't work:



          3) try to clean all the caches and restart npm:



          rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache



          If you don't have yarn installed just replace yarn word with npm in the above command.



          Source for Xcode add library steps: https://github.com/yamill/react-native-orientation






          share|improve this answer

























          • Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

            – Omar
            Nov 15 '18 at 10:30














          0












          0








          0







          Try:



          1)
          - in Xcode make sure you have followed these 3 steps:



          a) Add node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj to your xcode project, usually under the Libraries group



          enter image description here



          It should show up somewhere in a list like this:



          b) add libRCTOrientation.a (from Products under RCTOrientation.xcodeproj) to build target's Linked Frameworks and Libraries list



          It should show somewhere in a list like this:



          enter image description here



          c) Add $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/ to Project Name -> Build Settings -> Header Search Paths



          Make sure that path is correct, in my case I had to add /../ inside it, as above for my RN project, the rn-orientation docs specify that without /../.



          • in Xcode go to Product menu and run Clean build folder

          • run react-native run-ios

          If it still doesn't work try



          2) Xcode go to Product menu, Schemes, Edit schemes, Build and make sure parallelized build is NOT enabled in Build Options
          enter image description here



          If it still doesn't work:



          3) try to clean all the caches and restart npm:



          rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache



          If you don't have yarn installed just replace yarn word with npm in the above command.



          Source for Xcode add library steps: https://github.com/yamill/react-native-orientation






          share|improve this answer















          Try:



          1)
          - in Xcode make sure you have followed these 3 steps:



          a) Add node_modules/react-native-orientation/iOS/RCTOrientation.xcodeproj to your xcode project, usually under the Libraries group



          enter image description here



          It should show up somewhere in a list like this:



          b) add libRCTOrientation.a (from Products under RCTOrientation.xcodeproj) to build target's Linked Frameworks and Libraries list



          It should show somewhere in a list like this:



          enter image description here



          c) Add $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation/ to Project Name -> Build Settings -> Header Search Paths



          Make sure that path is correct, in my case I had to add /../ inside it, as above for my RN project, the rn-orientation docs specify that without /../.



          • in Xcode go to Product menu and run Clean build folder

          • run react-native run-ios

          If it still doesn't work try



          2) Xcode go to Product menu, Schemes, Edit schemes, Build and make sure parallelized build is NOT enabled in Build Options
          enter image description here



          If it still doesn't work:



          3) try to clean all the caches and restart npm:



          rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn install && npm start -- --reset-cache



          If you don't have yarn installed just replace yarn word with npm in the above command.



          Source for Xcode add library steps: https://github.com/yamill/react-native-orientation







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 16:37

























          answered Nov 14 '18 at 16:07









          K999K999

          4,02722643




          4,02722643












          • Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

            – Omar
            Nov 15 '18 at 10:30


















          • Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

            – Omar
            Nov 15 '18 at 10:30

















          Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

          – Omar
          Nov 15 '18 at 10:30






          Thank you @florin-dobre i have checked Librairies in Xcode and I noticed that RCTOrientation doesn't exist (it was in red color) and the package wasn't installed in project folder. So I installed it as you told me in your last comment by using npm install react-native-orientation --save

          – Omar
          Nov 15 '18 at 10:30




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303982%2flibrary-not-found-for-lrctorientation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          27

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          Category:Rhetoric