Is it possible to distribute binary ios framework using carthage











up vote
1
down vote

favorite












Please bear with me because I spent considerable amount of time on this. I am also relatively a beginner with swift and iOS.



What I did

- built a framework using cocoa touch

- clean, build and it succeeds without a problem.

- made the scheme shared

- did carthage build --no-skip-current

- did carthage archive

- copied only the zip file to a fresh new directory and uploaded with release in git.

- In a different project tried to pull the framework using carthage



and I get the error Dependency "xxx-ios" has no shared framework schemes then I copied the scheme directly and pushed it in the git along the zip. nothing. Tried without the zip together with the scheme. nothing.



Then I created a fresh framework and I did carthage build --no-skip-current and I uploaded the whole thing in the project folder to git. That pulls properly with carthage. Then I removed some part of that folder so that the scheme inside .xcodeproj and the carthage build folder remain, then I get a different error. At this point it got me thinking if carthage does support binary framework distribution.



In my company, they want it so that I don't expose the code - so I am trying to distribute built binary of the framework.



I would really appreciate any help or guides of what different things I could try to single out the problem. Thanks.



Edit

someone had almost exactly the same issue as mine in their issues here but a couple of conversations later it is closed without a solution.










share|improve this question




























    up vote
    1
    down vote

    favorite












    Please bear with me because I spent considerable amount of time on this. I am also relatively a beginner with swift and iOS.



    What I did

    - built a framework using cocoa touch

    - clean, build and it succeeds without a problem.

    - made the scheme shared

    - did carthage build --no-skip-current

    - did carthage archive

    - copied only the zip file to a fresh new directory and uploaded with release in git.

    - In a different project tried to pull the framework using carthage



    and I get the error Dependency "xxx-ios" has no shared framework schemes then I copied the scheme directly and pushed it in the git along the zip. nothing. Tried without the zip together with the scheme. nothing.



    Then I created a fresh framework and I did carthage build --no-skip-current and I uploaded the whole thing in the project folder to git. That pulls properly with carthage. Then I removed some part of that folder so that the scheme inside .xcodeproj and the carthage build folder remain, then I get a different error. At this point it got me thinking if carthage does support binary framework distribution.



    In my company, they want it so that I don't expose the code - so I am trying to distribute built binary of the framework.



    I would really appreciate any help or guides of what different things I could try to single out the problem. Thanks.



    Edit

    someone had almost exactly the same issue as mine in their issues here but a couple of conversations later it is closed without a solution.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Please bear with me because I spent considerable amount of time on this. I am also relatively a beginner with swift and iOS.



      What I did

      - built a framework using cocoa touch

      - clean, build and it succeeds without a problem.

      - made the scheme shared

      - did carthage build --no-skip-current

      - did carthage archive

      - copied only the zip file to a fresh new directory and uploaded with release in git.

      - In a different project tried to pull the framework using carthage



      and I get the error Dependency "xxx-ios" has no shared framework schemes then I copied the scheme directly and pushed it in the git along the zip. nothing. Tried without the zip together with the scheme. nothing.



      Then I created a fresh framework and I did carthage build --no-skip-current and I uploaded the whole thing in the project folder to git. That pulls properly with carthage. Then I removed some part of that folder so that the scheme inside .xcodeproj and the carthage build folder remain, then I get a different error. At this point it got me thinking if carthage does support binary framework distribution.



      In my company, they want it so that I don't expose the code - so I am trying to distribute built binary of the framework.



      I would really appreciate any help or guides of what different things I could try to single out the problem. Thanks.



      Edit

      someone had almost exactly the same issue as mine in their issues here but a couple of conversations later it is closed without a solution.










      share|improve this question















      Please bear with me because I spent considerable amount of time on this. I am also relatively a beginner with swift and iOS.



      What I did

      - built a framework using cocoa touch

      - clean, build and it succeeds without a problem.

      - made the scheme shared

      - did carthage build --no-skip-current

      - did carthage archive

      - copied only the zip file to a fresh new directory and uploaded with release in git.

      - In a different project tried to pull the framework using carthage



      and I get the error Dependency "xxx-ios" has no shared framework schemes then I copied the scheme directly and pushed it in the git along the zip. nothing. Tried without the zip together with the scheme. nothing.



      Then I created a fresh framework and I did carthage build --no-skip-current and I uploaded the whole thing in the project folder to git. That pulls properly with carthage. Then I removed some part of that folder so that the scheme inside .xcodeproj and the carthage build folder remain, then I get a different error. At this point it got me thinking if carthage does support binary framework distribution.



      In my company, they want it so that I don't expose the code - so I am trying to distribute built binary of the framework.



      I would really appreciate any help or guides of what different things I could try to single out the problem. Thanks.



      Edit

      someone had almost exactly the same issue as mine in their issues here but a couple of conversations later it is closed without a solution.







      ios swift xcode carthage






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 15:40

























      asked Nov 9 at 15:28









      besabestin

      159317




      159317
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          It sounds like you're using a github dependency in your Cartfile and attaching a binary of your framework to the GitHub Release. But you don't have any code in the repository, so Carthage is complaining because it can't actually build it.



          That's as designed—Carthage doesn't support distributing binary-only frameworks that way. Binaries attached to GitHub Releases are only meant as a way to speed up builds.



          However, Carthage does have a mechanism for binary-only dependencies: binary dependencies.






          share|improve this answer





















          • would have been nice tho, if this binary feature has the ability to clone from git.
            – besabestin
            Nov 14 at 8:45











          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',
          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%2f53228649%2fis-it-possible-to-distribute-binary-ios-framework-using-carthage%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








          up vote
          2
          down vote



          accepted










          It sounds like you're using a github dependency in your Cartfile and attaching a binary of your framework to the GitHub Release. But you don't have any code in the repository, so Carthage is complaining because it can't actually build it.



          That's as designed—Carthage doesn't support distributing binary-only frameworks that way. Binaries attached to GitHub Releases are only meant as a way to speed up builds.



          However, Carthage does have a mechanism for binary-only dependencies: binary dependencies.






          share|improve this answer





















          • would have been nice tho, if this binary feature has the ability to clone from git.
            – besabestin
            Nov 14 at 8:45















          up vote
          2
          down vote



          accepted










          It sounds like you're using a github dependency in your Cartfile and attaching a binary of your framework to the GitHub Release. But you don't have any code in the repository, so Carthage is complaining because it can't actually build it.



          That's as designed—Carthage doesn't support distributing binary-only frameworks that way. Binaries attached to GitHub Releases are only meant as a way to speed up builds.



          However, Carthage does have a mechanism for binary-only dependencies: binary dependencies.






          share|improve this answer





















          • would have been nice tho, if this binary feature has the ability to clone from git.
            – besabestin
            Nov 14 at 8:45













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          It sounds like you're using a github dependency in your Cartfile and attaching a binary of your framework to the GitHub Release. But you don't have any code in the repository, so Carthage is complaining because it can't actually build it.



          That's as designed—Carthage doesn't support distributing binary-only frameworks that way. Binaries attached to GitHub Releases are only meant as a way to speed up builds.



          However, Carthage does have a mechanism for binary-only dependencies: binary dependencies.






          share|improve this answer












          It sounds like you're using a github dependency in your Cartfile and attaching a binary of your framework to the GitHub Release. But you don't have any code in the repository, so Carthage is complaining because it can't actually build it.



          That's as designed—Carthage doesn't support distributing binary-only frameworks that way. Binaries attached to GitHub Releases are only meant as a way to speed up builds.



          However, Carthage does have a mechanism for binary-only dependencies: binary dependencies.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 at 0:11









          mdiep

          19818




          19818












          • would have been nice tho, if this binary feature has the ability to clone from git.
            – besabestin
            Nov 14 at 8:45


















          • would have been nice tho, if this binary feature has the ability to clone from git.
            – besabestin
            Nov 14 at 8:45
















          would have been nice tho, if this binary feature has the ability to clone from git.
          – besabestin
          Nov 14 at 8:45




          would have been nice tho, if this binary feature has the ability to clone from git.
          – besabestin
          Nov 14 at 8:45


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53228649%2fis-it-possible-to-distribute-binary-ios-framework-using-carthage%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







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()