Flutter ios - app works on simulator fails on deploying to iphone - library not found for -lFirebaseCore












0















As the title states I can run my app on ios simulator but when I attempt to deploy my app to the iphone through Xcode I get the error message



:-1: library not found for -lFirebaseCore


Any suggestions on what I might be doing wrong ? This is my pubspec.yaml



dependencies:
flutter:
sdk: flutter

cupertino_icons: ^0.1.0
http: "^0.11.3+16"

crypto: any
validate: "^1.6.0"
json_annotation: ^0.2.4
image_picker: "^0.4.1"
firebase_messaging: ^2.1.0
device_info: ^0.2.1
location: ^1.4.1
cached_network_image: "^0.4.1"
mutex: #"^0.0.1"
logging: "^0.11.3+1"
uuid: ">=1.0.0"
web_socket_channel: ^1.0.9

dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
json_serializable: ^0.5.2


Any suggestions are more than welcome. Thanks










share|improve this question



























    0















    As the title states I can run my app on ios simulator but when I attempt to deploy my app to the iphone through Xcode I get the error message



    :-1: library not found for -lFirebaseCore


    Any suggestions on what I might be doing wrong ? This is my pubspec.yaml



    dependencies:
    flutter:
    sdk: flutter

    cupertino_icons: ^0.1.0
    http: "^0.11.3+16"

    crypto: any
    validate: "^1.6.0"
    json_annotation: ^0.2.4
    image_picker: "^0.4.1"
    firebase_messaging: ^2.1.0
    device_info: ^0.2.1
    location: ^1.4.1
    cached_network_image: "^0.4.1"
    mutex: #"^0.0.1"
    logging: "^0.11.3+1"
    uuid: ">=1.0.0"
    web_socket_channel: ^1.0.9

    dev_dependencies:
    flutter_test:
    sdk: flutter
    build_runner:
    json_serializable: ^0.5.2


    Any suggestions are more than welcome. Thanks










    share|improve this question

























      0












      0








      0








      As the title states I can run my app on ios simulator but when I attempt to deploy my app to the iphone through Xcode I get the error message



      :-1: library not found for -lFirebaseCore


      Any suggestions on what I might be doing wrong ? This is my pubspec.yaml



      dependencies:
      flutter:
      sdk: flutter

      cupertino_icons: ^0.1.0
      http: "^0.11.3+16"

      crypto: any
      validate: "^1.6.0"
      json_annotation: ^0.2.4
      image_picker: "^0.4.1"
      firebase_messaging: ^2.1.0
      device_info: ^0.2.1
      location: ^1.4.1
      cached_network_image: "^0.4.1"
      mutex: #"^0.0.1"
      logging: "^0.11.3+1"
      uuid: ">=1.0.0"
      web_socket_channel: ^1.0.9

      dev_dependencies:
      flutter_test:
      sdk: flutter
      build_runner:
      json_serializable: ^0.5.2


      Any suggestions are more than welcome. Thanks










      share|improve this question














      As the title states I can run my app on ios simulator but when I attempt to deploy my app to the iphone through Xcode I get the error message



      :-1: library not found for -lFirebaseCore


      Any suggestions on what I might be doing wrong ? This is my pubspec.yaml



      dependencies:
      flutter:
      sdk: flutter

      cupertino_icons: ^0.1.0
      http: "^0.11.3+16"

      crypto: any
      validate: "^1.6.0"
      json_annotation: ^0.2.4
      image_picker: "^0.4.1"
      firebase_messaging: ^2.1.0
      device_info: ^0.2.1
      location: ^1.4.1
      cached_network_image: "^0.4.1"
      mutex: #"^0.0.1"
      logging: "^0.11.3+1"
      uuid: ">=1.0.0"
      web_socket_channel: ^1.0.9

      dev_dependencies:
      flutter_test:
      sdk: flutter
      build_runner:
      json_serializable: ^0.5.2


      Any suggestions are more than welcome. Thanks







      ios xcode dart flutter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 18 at 13:56









      MistyDMistyD

      4,0941468139




      4,0941468139
























          2 Answers
          2






          active

          oldest

          votes


















          0














          I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.






          share|improve this answer


























          • Where do i add that ? in xcode ?

            – MistyD
            Jan 18 at 14:15











          • sorry, they are plug-ins. add them in pubspec.yaml

            – Feu
            Jan 18 at 14:30



















          0














          Try cd into the iOS folder of your flutter projects directory and run



          pod install





          share|improve this answer
























          • ok let try that

            – MistyD
            Jan 18 at 14:12











          • Unfortunately that does not work either

            – MistyD
            Jan 18 at 14:15











          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%2f54255479%2fflutter-ios-app-works-on-simulator-fails-on-deploying-to-iphone-library-not%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.






          share|improve this answer


























          • Where do i add that ? in xcode ?

            – MistyD
            Jan 18 at 14:15











          • sorry, they are plug-ins. add them in pubspec.yaml

            – Feu
            Jan 18 at 14:30
















          0














          I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.






          share|improve this answer


























          • Where do i add that ? in xcode ?

            – MistyD
            Jan 18 at 14:15











          • sorry, they are plug-ins. add them in pubspec.yaml

            – Feu
            Jan 18 at 14:30














          0












          0








          0







          I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.






          share|improve this answer















          I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 18 at 14:31

























          answered Jan 18 at 14:13









          FeuFeu

          870616




          870616













          • Where do i add that ? in xcode ?

            – MistyD
            Jan 18 at 14:15











          • sorry, they are plug-ins. add them in pubspec.yaml

            – Feu
            Jan 18 at 14:30



















          • Where do i add that ? in xcode ?

            – MistyD
            Jan 18 at 14:15











          • sorry, they are plug-ins. add them in pubspec.yaml

            – Feu
            Jan 18 at 14:30

















          Where do i add that ? in xcode ?

          – MistyD
          Jan 18 at 14:15





          Where do i add that ? in xcode ?

          – MistyD
          Jan 18 at 14:15













          sorry, they are plug-ins. add them in pubspec.yaml

          – Feu
          Jan 18 at 14:30





          sorry, they are plug-ins. add them in pubspec.yaml

          – Feu
          Jan 18 at 14:30













          0














          Try cd into the iOS folder of your flutter projects directory and run



          pod install





          share|improve this answer
























          • ok let try that

            – MistyD
            Jan 18 at 14:12











          • Unfortunately that does not work either

            – MistyD
            Jan 18 at 14:15
















          0














          Try cd into the iOS folder of your flutter projects directory and run



          pod install





          share|improve this answer
























          • ok let try that

            – MistyD
            Jan 18 at 14:12











          • Unfortunately that does not work either

            – MistyD
            Jan 18 at 14:15














          0












          0








          0







          Try cd into the iOS folder of your flutter projects directory and run



          pod install





          share|improve this answer













          Try cd into the iOS folder of your flutter projects directory and run



          pod install






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 18 at 14:12









          Jordan DaviesJordan Davies

          793419




          793419













          • ok let try that

            – MistyD
            Jan 18 at 14:12











          • Unfortunately that does not work either

            – MistyD
            Jan 18 at 14:15



















          • ok let try that

            – MistyD
            Jan 18 at 14:12











          • Unfortunately that does not work either

            – MistyD
            Jan 18 at 14:15

















          ok let try that

          – MistyD
          Jan 18 at 14:12





          ok let try that

          – MistyD
          Jan 18 at 14:12













          Unfortunately that does not work either

          – MistyD
          Jan 18 at 14:15





          Unfortunately that does not work either

          – MistyD
          Jan 18 at 14:15


















          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%2f54255479%2fflutter-ios-app-works-on-simulator-fails-on-deploying-to-iphone-library-not%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

          Callistus III

          Plistias Cous

          Index Sanctorum