cloudant / CDTDatastore

Cloudant Sync iOS datastore library.
Apache License 2.0
175 stars 53 forks source link

add carthage instructions to documentation #364

Closed scottdickerson closed 2 years ago

scottdickerson commented 7 years ago

Can you add instructions to build CDTDatastore with and without SQLCipher to the documentation using Carthage rather than Cocoapods?

tomblench commented 7 years ago

@swiftfoot we haven't investigated Carthage and unfortunately it's not a priority for us right now. If you can get CDTDatastore built with Carthage we'd be interested in taking your contributions (subject to CLA - see CONTRIBUTING.

denisw commented 6 years ago

I tried adding this to my Cartfile:

github "cloudant/CDTDatastore", >= 2.0.2

When running carthage update, Carthage properly checks out the repo and starts an xcodebuild, but that unfortunately fails because the Xcode project seems to require pod install to have run. This is the error log:

/usr/bin/xcrun xcodebuild -project /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore/CDTDatastore.xcodeproj -scheme CDTDatastore -configuration Release -derivedDataPath /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/x9/kdt9tzvd1l98zs9vnxt440rc0000gn/T/CDTDatastore SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore)User defaults from command line:
    IDEArchivePathOverride = /var/folders/x9/kdt9tzvd1l98zs9vnxt440rc0000gn/T/CDTDatastore
    IDEDerivedDataPathOverride = /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2

Build settings from command line:
    BITCODE_GENERATION_MODE = bitcode
    CARTHAGE = YES
    CLANG_ENABLE_CODE_COVERAGE = NO
    CODE_SIGN_IDENTITY = 
    CODE_SIGNING_REQUIRED = NO
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphoneos11.3
    SKIP_INSTALL = YES
    STRIP_INSTALLED_PRODUCT = NO

=== BUILD TARGET CDTDatastore OF PROJECT CDTDatastore WITH CONFIGURATION Release ===

Check dependencies
The file “Pods-base-CDTDatastore.release.xcconfig” couldn’t be opened because there is no such file. (/Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore/Pods/Target Support Files/Pods-base-CDTDatastore/Pods-base-CDTDatastore.release.xcconfig)

Write auxiliary files
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore-project-headers.hmap
/bin/mkdir -p /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Objects-normal/arm64
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Objects-normal/arm64/CDTDatastore.LinkFileList
/bin/mkdir -p /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/DerivedSources
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/DerivedSources/CDTDatastore_vers.c
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-74DB0EF2149B218BDE20C6D5.sh
chmod 0755 /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-74DB0EF2149B218BDE20C6D5.sh
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore-all-non-framework-target-headers.hmap
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore.hmap
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore-generated-files.hmap
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/module.modulemap
/bin/mkdir -p /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Objects-normal/armv7
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Objects-normal/armv7/CDTDatastore.LinkFileList
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/all-product-headers.yaml
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-92D05D0D610105627EDBEE52.sh
chmod 0755 /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-92D05D0D610105627EDBEE52.sh
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore-own-target-headers.hmap
write-file /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/CDTDatastore-all-target-headers.hmap

Create product structure
/bin/mkdir -p /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework
/bin/mkdir -p /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework/Headers

ProcessInfoPlistFile /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework/Info.plist CDTDatastore/Info.plist
    cd /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/denis/.rbenv/shims:/usr/local/opt/rbenv/bin:/Users/denis/.nvm/versions/node/v8.10.0/bin:/Users/denis/.jenv/shims:/Users/denis/.jenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/bin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/denis/.jenv/shims:/Users/denis/.jenv/bin:~/go/bin:/Users/denis/Library/Android/sdk/tools:/Users/denis/Library/Android/sdk/platform-tools"
    builtin-infoPlistUtility /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore/CDTDatastore/Info.plist -expandbuildsettings -format binary -platform iphoneos -o /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework/Info.plist

SymLink /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/BuildProductsPath/Release-iphoneos/CDTDatastore.framework /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework
    cd /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/denis/.rbenv/shims:/usr/local/opt/rbenv/bin:/Users/denis/.nvm/versions/node/v8.10.0/bin:/Users/denis/.jenv/shims:/Users/denis/.jenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/bin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/denis/.jenv/shims:/Users/denis/.jenv/bin:~/go/bin:/Users/denis/Library/Android/sdk/tools:/Users/denis/Library/Android/sdk/platform-tools"
    /bin/ln -sfh /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CDTDatastore.framework /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/BuildProductsPath/Release-iphoneos/CDTDatastore.framework

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-92D05D0D610105627EDBEE52.sh
    cd /Users/denis/Dropbox/Workspace/yumory-app/ios/Carthage/Checkouts/CDTDatastore
    /bin/sh -c /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-92D05D0D610105627EDBEE52.sh
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

** ARCHIVE FAILED **

The following build commands failed:
    PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/denis/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/CDTDatastore/2.0.2/Build/Intermediates.noindex/ArchiveIntermediates/CDTDatastore/IntermediateBuildFilesPath/CDTDatastore.build/Release-iphoneos/CDTDatastore.build/Script-92D05D0D610105627EDBEE52.sh
(1 failure)
ricellis commented 2 years ago

This library is now end-of-life and this issue won't be fixed. This issue has been tagged EOL in case any forks want to import it.