Code Monkey home page Code Monkey logo

Comments (19)

solidcell avatar solidcell commented on June 15, 2024

👍

from bolts-objc.

mkubenka avatar mkubenka commented on June 15, 2024

+1

from bolts-objc.

nathanhosselton avatar nathanhosselton commented on June 15, 2024

Bolts for iOS is currently not building with Carthage, generating the following error:

A shell task failed with exit code 1:
error: cannot parse the debug map for "<directory to project>/project/Carthage/Build/iOS/Bolts.framework/Bolts": The file was not recognized as a valid object file

I have not seen other frameworks generate a binary file (in this case the "Bolts" file that is the failure point) when building with Carthage. MacBolts also has this file but it appears to generate without problem while the file for iOS does not. I am not sure how to proceed. Any insight into this file's purpose and origin would be appreciated.

from bolts-objc.

nathanhosselton avatar nathanhosselton commented on June 15, 2024

I was incorrect in my previous comment regarding the binary file; some frameworks do appear to generate them as well when built with Carthage.

from bolts-objc.

alec-c4 avatar alec-c4 commented on June 15, 2024

any news, guys?

from bolts-objc.

phongleq avatar phongleq commented on June 15, 2024

Looks like this project is also blocking from using FBSDK

from bolts-objc.

lucasderraugh avatar lucasderraugh commented on June 15, 2024

After some investigation, it comes down to the fact that the iOS target for Bolts is a static library. Carthage only supports dynamic libraries so I've submitted my pull request with what I believe are the appropriate changes.

from bolts-objc.

ffittschen avatar ffittschen commented on June 15, 2024

👍🏻

from bolts-objc.

lucasderraugh avatar lucasderraugh commented on June 15, 2024

This should now be possible in iOS as of 1ee6d30. I think everything else has to have a framework anyways so I want to say the issue is now closed but I'll test some of it out.

from bolts-objc.

bstrull avatar bstrull commented on June 15, 2024

Using Bolts as a dynamic library, I had to set the build setting DYLIB_INSTALL_NAME_BASE to @rpath on the iOS-Dynamic target. Otherwise everything would compile and link but there would be a runtime error.

With commit 1ee6d30 Carthage still tries to build and fail the static lib. The only workaround I found so a far is to unshare the iOS target so Carthage builds only the dynamic library.

from bolts-objc.

nsforge avatar nsforge commented on June 15, 2024

FWIW, I had success integrating into an iOS app with Carthage without doing anything special. I ran carthage update, linked against the Bolts.framework dynamic framework, and everything worked as expected.

Using:
Xcode 7.1.1
Carthage 0.11.0

Cartfile:

github "BoltsFramework/Bolts-iOS"

Cartfile.resolved:

github "BoltsFramework/Bolts-iOS" "1.5.0"

Note: This project had been previously configured to use other libs via Carthage, so I may have changed a build setting or something that allowed it to work without any further config.

from bolts-objc.

nlutsenko avatar nlutsenko commented on June 15, 2024

Hey guys, just wanted to let you know that this is coming very very soon.
To test this right now - specify the following in your Cartfile:

github "BoltsFramework/Bolts-iOS" "nlutsenko.dynamic"

If at some later point it is going to complain that the branch no longer exists - then it probably was merged in master.

from bolts-objc.

nlutsenko avatar nlutsenko commented on June 15, 2024

It's fully supported now, starting from 1.5.1 release.

from bolts-objc.

brennanMKE avatar brennanMKE commented on June 15, 2024

I just arrived here looking for iOS support due to this warning from Carthage.

Dependency "Bolts-iOS" has no shared framework schemes for any of the platforms: iOS

I ran the following command to have it build for iOS.

carthage build --platform iOS

I will try out the 1.5.1 release.

from bolts-objc.

nlutsenko avatar nlutsenko commented on June 15, 2024

Try 1.5.1 - I tested with 'master' before releasing - it built for all platforms.

from bolts-objc.

brennanMKE avatar brennanMKE commented on June 15, 2024

Next I am going to try getting Parse to build. I see the following message from Carthage.

Building scheme "OCMock iOS" in Parse.xcworkspace

from bolts-objc.

nlutsenko avatar nlutsenko commented on June 15, 2024

Be aware that Parse doesn't yet support Carthage, only Bolts does.
I am working on bringing it to Parse right now.

from bolts-objc.

brennanMKE avatar brennanMKE commented on June 15, 2024

btw, I do see Bolts.framework and Bolts.framework.dSYM in Carthage/Build/iOS/ now. Thanks @nlutsenko!

from bolts-objc.

brennanMKE avatar brennanMKE commented on June 15, 2024

@nlutsenko How long will the update for Parse take? I may just fork and make a change to get it done for my immediate needs and could send a PR if you want. I'll review what you did for Bolts and replicate the change.

from bolts-objc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.