diff --git a/.travis.yml b/.travis.yml index e3ffb43d5..c0e8d4282 100644 --- a/.travis.yml +++ b/.travis.yml @@ -209,17 +209,14 @@ jobs: - TID=CocoaPods GRDB script: make test_install_GRDB_CocoaPods - # Disabled until we understand the reason for this failure: - # https://travis-ci.org/groue/GRDB.swift/jobs/503214543 - # - # # CocoaPods Install (Xcode 10) - # - stage: Test Installation - # osx_image: xcode10 - # install: - # - gem install cocoapods --pre # >= 1.6.0.beta.1 for cocoapods lint - # env: - # - TID=CocoaPods GRDBCipher (Xcode 10) - # script: make test_install_GRDBCipher_CocoaPods + # CocoaPods Install (Xcode 10) + - stage: Test Installation + osx_image: xcode10.1 + install: + - gem install cocoapods --pre # >= 1.6.0.beta.1 for cocoapods lint + env: + - TID=CocoaPods GRDBCipher + script: make test_install_GRDBCipher_CocoaPods # SPM Install - stage: Test Installation Xcode 10.1 diff --git a/GRDB.swift.podspec b/GRDB.swift.podspec index 4e2ff3425..3a3c14b23 100644 --- a/GRDB.swift.podspec +++ b/GRDB.swift.podspec @@ -12,18 +12,17 @@ Pod::Spec.new do |s| s.ios.deployment_target = '9.0' s.osx.deployment_target = '10.9' s.watchos.deployment_target = '2.0' + s.module_map = 'Support/module.modulemap' s.default_subspec = 'standard' s.subspec 'standard' do |ss| ss.source_files = 'GRDB/**/*.swift', 'Support/*.h' - ss.module_map = 'Support/module.modulemap' ss.framework = 'Foundation' ss.library = 'sqlite3' end s.subspec 'SQLCipher' do |ss| ss.source_files = 'GRDB/**/*.swift', 'Support/*.h' - ss.module_map = 'Support/module.modulemap' ss.framework = 'Foundation' ss.dependency 'SQLCipher', '>= 3.4.0' ss.xcconfig = { diff --git a/Makefile b/Makefile index 4ca969812..87aeaff87 100644 --- a/Makefile +++ b/Makefile @@ -296,6 +296,7 @@ ifdef POD rm -rf GRDBCipherMacOS.xcworkspace && \ rm -rf Pods && \ rm -rf Podfile.lock && \ + $(POD) repo update && \ $(POD) install && \ $(XCODEBUILD) \ -workspace GRDBCipherMacOS.xcworkspace \ diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj index 2c37b257b..b99db29aa 100644 --- a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj @@ -182,12 +182,12 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS-frameworks.sh", - "${BUILT_PRODUCTS_DIR}/GRDBCipher/GRDBCipher.framework", + "${BUILT_PRODUCTS_DIR}/GRDB.swift/GRDB.framework", "${BUILT_PRODUCTS_DIR}/SQLCipher/SQLCipher.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDBCipher.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDB.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SQLCipher.framework", ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift index f8f8ff94c..e2d05e8c2 100644 --- a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift @@ -1,12 +1,15 @@ import Cocoa -import GRDBCipher +import GRDB @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var window: NSWindow! func applicationDidFinishLaunching(_ aNotification: Notification) { - let dbQueue = DatabaseQueue() + // Make sure SQLCipher is enabled + var configuration = Configuration() + configuration.passphrase = "secret" + let dbQueue = DatabaseQueue(configuration: configuration) // Make sure FTS5 is enabled try! dbQueue.write { db in diff --git a/Tests/CocoaPods/GRDBCipherMacOS/Podfile b/Tests/CocoaPods/GRDBCipherMacOS/Podfile index e13cee895..6849207de 100644 --- a/Tests/CocoaPods/GRDBCipherMacOS/Podfile +++ b/Tests/CocoaPods/GRDBCipherMacOS/Podfile @@ -1,4 +1,4 @@ target 'GRDBCipherMacOS' platform :macos, '10.13' use_frameworks! -pod 'GRDBCipher', :path => '../../..' +pod 'GRDB.swift/SQLCipher', :path => '../../..'