IOS-DFU-Library: Problem including the DFU lib in another lib that is distributed over Carthage

Hi,

We’re developing the Crownstone, which uses the NRF52. I’m developing the iOS lib and consumer app for the product. I’d like to include the Nordic DFU lib as part of my lib so I can wrap all Crownstone related operations in our native lib. This lib is distributed via Carthage and used by a number of different applications.

My lib’s cartfile looks like this:

# Crypto related functions and helpers for Swift
github "krzyzanowskim/CryptoSwift" "0.6.1"

# We code in Asynchronous world. We promise. [http://promisekit.org/]
github "mxcl/PromiseKit"

# JSON Parser
github "SwiftyJSON/SwiftyJSON"

# DFU code from Nordic
github "NordicSemiconductor/IOS-Pods-DFU-Library"

I added a run script to my lib:

# required to build framework in xcode
rm -rf Carthage/Checkouts/IOS-Pods-DFU-Library/Example/Pods/

in order to avoid the issue posted in #49. The lib compiles to a framework now! Hurray!

Carthage build --no-skip-current --platform iOS also works fine:

Alexs-iMac:BluenetLibIOS alex$ carthage update --platform iOS --no-use-binaries
*** Fetching IOS-Pods-DFU-Library
*** Fetching SwiftyJSON
*** Fetching PromiseKit
*** Fetching Zip
*** Checking out CryptoSwift at "0.6.1"
*** Checking out PromiseKit at "4.1.3"
*** Checking out SwiftyJSON at "3.1.4"
*** Checking out Zip at "0.6.0"
*** Checking out IOS-Pods-DFU-Library at "3.0.4"
*** xcodebuild output can be found in /var/folders/lv/t0vwd5w9211_mrcjqvc1gcdw0000gn/T/carthage-xcodebuild.aqTdFJ.log
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "PromiseKit" in PromiseKit.xcodeproj
*** Building scheme "SwiftyJSON iOS" in SwiftyJSON.xcworkspace
*** Building scheme "Zip" in Zip.xcodeproj
*** Building scheme "iOSDFULibrary" in iOSDFULibrary.xcworkspace
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetLibIOS/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetLibIOS/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetLibIOS/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetLibIOS/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
Alexs-iMac:BluenetLibIOS alex$ 

I have my dev app, my consumer app, and thrid party apps which uses the lib through carthage. The only entry in those cart files is the lib git repo:

# BluenetLibIOS
# link to the local repo so I don't have to tag releases for experimenting with Carthage.
git "file:///Users/alex/Dropbox/DoBots/Projects/XCode/BluenetLibIOS/.git" "master"

# BluenetLibIOS on github
#github "crownstone/bluenet-lib-ios"

If I now run carthage update --platform iOS --no-use-binaries I get this:

Alexs-iMac:BluenetRuntime alex$ carthage update --platform iOS --no-use-binaries
*** Fetching 
*** Fetching IOS-Pods-DFU-Library
*** Fetching SwiftyJSON
*** Fetching PromiseKit
*** Fetching Zip
*** Checking out CryptoSwift at "0.6.1"
*** Checking out PromiseKit at "4.1.3"
*** Checking out SwiftyJSON at "3.1.4"
*** Checking out Zip at "0.6.0"
*** Checking out IOS-Pods-DFU-Library at "3.0.4"
*** Checking out  at "6b576bb8e5b2cc7c4f76ac25cac0c0dc877843b9"
*** xcodebuild output can be found in /var/folders/lv/t0vwd5w9211_mrcjqvc1gcdw0000gn/T/carthage-xcodebuild.9fXSgA.log
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "PromiseKit" in PromiseKit.xcodeproj
*** Building scheme "SwiftyJSON iOS" in SwiftyJSON.xcworkspace
*** Building scheme "Zip" in Zip.xcodeproj
*** Building scheme "iOSDFULibrary" in iOSDFULibrary.xcworkspace
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "SwiftyJSON iOS" in SwiftyJSON.xcworkspace
*** Building scheme "BluenetLibIOS" in BluenetLibIOS.xcodeproj
*** Building scheme "iOSDFULibrary" in iOSDFULibrary.xcworkspace
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
/Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift:16:21: warning: property should not be declared fileprivate because its type uses a private type
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/alex/Dropbox/DoBots/Projects/XCode/BluenetRuntime/Carthage/Checkouts/IOS-Pods-DFU-Library/Example/iOSDFULibrary.xcworkspace -scheme iOSDFULibrary CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean -showBuildSettings) failed with exit code 65:
xcodebuild: error: The workspace named "iOSDFULibrary" does not contain a scheme named "iOSDFULibrary". The "-list" option can be used to find the names of the schemes in the workspace.

I would assume that the package manager will just build the dependencies as it did before using the iOSDFULibrary.

Regards

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Thanks a lot!