Coder Social home page Coder Social logo

Cannot build with Carthage about devicekit HOT 2 CLOSED

devicekit avatar devicekit commented on July 4, 2024
Cannot build with Carthage

from devicekit.

Comments (2)

schjonhaug avatar schjonhaug commented on July 4, 2024

Tried building with 0.3.0, and then I get

*** Building scheme "DeviceKit-iOS" in DeviceKit.xcodeproj
2016-03-09 11:27:57.048 xcodebuild[20462:23675324] [MT] PluginLoading: Required plug-in compatibility UUID F41BD31E-2683-44B8-AE7F-5F09E919790E for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPodUI.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-03-09 11:27:57.049 xcodebuild[20462:23675324] Failed to load plugin at: /Users/schjonhaug/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPodUI.xcplugin, skipping.  Reason for failure: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
** BUILD FAILED **


The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(1 failure)
<unknown>:0: error: no such file or directory: '/Users/schjonhaug/Development/rikstv-jr./Carthage/DeviceKit/Sources/Device.swift'
A shell task failed with exit code 65:
2016-03-09 11:27:57.048 xcodebuild[20462:23675324] [MT] PluginLoading: Required plug-in compatibility UUID F41BD31E-2683-44B8-AE7F-5F09E919790E for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPodUI.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-03-09 11:27:57.049 xcodebuild[20462:23675324] Failed to load plugin at: /Users/schjonhaug/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPodUI.xcplugin, skipping.  Reason for failure: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
** BUILD FAILED **


The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(1 failure)

from devicekit.

dennisweissmann avatar dennisweissmann commented on July 4, 2024

Sorry! Wow, 0.3.0 is some screwed up release! :O ... Please do the following to work around the issue:

  1. In your cartfile put github "dennisweissmann/DeviceKit" == 0.3.0.Then check it out:

    carthage checkout

  2. After that go the checked out folder (by default this is in your project directory under Carthage/Checkouts/DeviceKit).

  3. Open the xcodeproj.

  4. In the navigation bar unter DeviceKit/Source the Device.swift file and the Info.plist are red. Remove them (select them and press backspace).

  5. In Finder navigate the the "Source" directory in the same folder you opened the xcodeproj from.

  6. Drag and drop them into the Source folder in Xcode (where you just deleted the red files).

  7. Check "Copy items if needed and make sure you add them to both the iOS and tvOS targets (DeviceKit-iOS and DeviceKit-tvOS, respectively).

  8. Click finish and close the project.

  9. Go back to the terminal and run

    carthage build

Now everything should work and you can add the framework to your project as usual.

I am really sorry for the trouble, I don't know what went wrong there ...

Please let me know if it worked for you!

from devicekit.

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.