最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]使用Carthage去管理iOS第三方库

Carthage crifan 1858浏览 0评论

之前已经弄了:

[记录]折腾iOS的第三方包管理工具:Carthage

现在在新的项目中,去加上Carthage。

1.创建对应的配置文件Cartfile

licrifandeMacBook-Pro:JianDao2iOS crifan$ cd JianDao2/
licrifandeMacBook-Pro:JianDao2 crifan$ ls -la
total 0
drwxr-xr-x  6 crifan  staff  204  7 28 14:12 .
drwxr-xr-x  6 crifan  staff  204  7 28 14:12 ..
drwxr-xr-x  8 crifan  staff  272  7 28 14:37 JianDao2
drwxr-xr-x  5 crifan  staff  170  7 28 14:36 JianDao2.xcodeproj
drwxr-xr-x  4 crifan  staff  136  7 28 14:12 JianDao2Tests
drwxr-xr-x  4 crifan  staff  136  7 28 14:12 JianDao2UITests
licrifandeMacBook-Pro:JianDao2 crifan$ touch Cartfile
licrifandeMacBook-Pro:JianDao2 crifan$ ls -la
total 0
drwxr-xr-x  7 crifan  staff  238  7 28 14:42 .
drwxr-xr-x  6 crifan  staff  204  7 28 14:12 ..
-rw-r–r–  1 crifan  staff    0  7 28 14:42 Cartfile
drwxr-xr-x  8 crifan  staff  272  7 28 14:37 JianDao2
drwxr-xr-x  5 crifan  staff  170  7 28 14:36 JianDao2.xcodeproj
drwxr-xr-x  4 crifan  staff  136  7 28 14:12 JianDao2Tests
drwxr-xr-x  4 crifan  staff  136  7 28 14:12 JianDao2UITests
licrifandeMacBook-Pro:JianDao2 crifan$ pwd
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2
licrifandeMacBook-Pro:JianDao2 crifan$ 

2.编辑Cartfile,加上要使用的库

github "robb/Cartography"
github "realm/realm-cocoa"
github "DaveWoodCom/XCGLogger" ~> 3.3
github "Alamofire/Alamofire" ~> 3.4
github "jrendel/SwiftKeychainWrapper"
github "thii/SwiftHEXColors"
github "SwiftyJSON/SwiftyJSON"
github "onevcat/Kingfisher" ~> 2.4
github "uacaps/PageMenu"
github "rhodgkins/SwiftHTTPStatusCodes" ~> 3.0

3.去下载和更新对应的库

注:

关于命令的使用,详见help信息:

licrifandeMacBook-Pro:JianDao2 crifan$ carthage help
Available commands:
   archive           Archives built frameworks into a zip that Carthage can use
   bootstrap         Check out and build the project’s dependencies
   build             Build the project’s dependencies
   checkout          Check out the project’s dependencies
   copy-frameworks   In a Run Script build phase, copies each framework specified by a SCRIPT_INPUT_FILE environment variable into the built app bundle
   fetch             Clones or fetches a Git repository ahead of time
   help              Display general or command-specific help
   outdated          Check for compatible updates to the project’s dependencies
   update            Update and rebuild the project’s dependencies
   version           Display the current version of Carthage

然后:

licrifandeMacBook-Pro:JianDao2 crifan$ carthage help update
Update and rebuild the project’s dependencies
[–configuration (string)]
    the Xcode configuration to build (ignored if –no-build option is present)
[–platform (platform)]
    the platforms to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, ‘tvOS’, or comma-separated values of the formers except for ‘all’)
    (ignored if –no-build option is present)
[–derived-data (string)]
    path to the custom derived data folder
[–verbose]
    print xcodebuild output inline (ignored if –no-build option is present)
[–no-checkout]
    skip the checking out of dependencies after updating
[–no-build]
    skip the building of dependencies after updating (ignored if –no-checkout option is present)
[–use-ssh]
    use SSH for downloading GitHub repositories
[–use-submodules]
    add dependencies as Git submodules
[–no-use-binaries]
    check out dependency repositories even when prebuilt frameworks exist, disabled if –use-submodules option is present (ignored if –no-build option is present)
[–color (color)]
    whether to apply color and terminal formatting (one of ‘auto’, ‘always’, or ‘never’)
[–project-directory (string)]
    the directory containing the Carthage project
[[]]
    the dependency names to update, checkout and build
licrifandeMacBook-Pro:JianDao2 crifan$ carthage update –platform iOS
*** Fetching SwiftHTTPStatusCodes
*** Fetching PageMenu
*** Fetching Kingfisher
*** Fetching SwiftyJSON
*** Fetching SwiftHEXColors
*** Fetching SwiftKeychainWrapper
*** Fetching Alamofire
*** Fetching XCGLogger
*** Fetching realm-cocoa
*** Fetching Cartography
*** Checking out Alamofire at "3.4.1"
*** Checking out SwiftHTTPStatusCodes at "3.0.0"
*** Checking out SwiftKeychainWrapper at "1.0.11"
*** Checking out SwiftHEXColors at "1.0.4"
*** Downloading realm-cocoa.framework binary at "v1.0.2"
*** Checking out Cartography at "0.6.0"
*** Checking out Kingfisher at "2.4.2"
*** Checking out SwiftyJSON at "2.3.3"
*** Checking out PageMenu at "1.2.9"
*** Checking out XCGLogger at "Version_3.3"
^C

网络不好,去Control+C中断了

重新开始:

等了好半天,终于可以了:

licrifandeMacBook-Pro:JianDao2 crifan$ carthage update –platform iOS
*** Fetching SwiftHTTPStatusCodes
*** Fetching PageMenu
*** Fetching Kingfisher
*** Fetching SwiftyJSON
*** Fetching SwiftHEXColors
*** Fetching SwiftKeychainWrapper
*** Fetching Alamofire
*** Fetching XCGLogger
*** Fetching realm-cocoa
*** Fetching Cartography
*** Checking out Alamofire at "3.4.1"
*** Checking out SwiftHTTPStatusCodes at "3.0.0"
*** Checking out SwiftKeychainWrapper at "1.0.11"
*** Checking out PageMenu at "1.2.9"
*** Checking out Cartography at "0.6.0"
*** Downloading realm-cocoa.framework binary at "v1.0.2"
*** Checking out Kingfisher at "2.4.2"
*** Checking out SwiftHEXColors at "1.0.4"
*** Checking out SwiftyJSON at "2.3.3"
*** Checking out XCGLogger at "Version_3.3"
*** xcodebuild output can be found in /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/carthage-xcodebuild.OturqP.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
*** Building scheme "Cartography-iOS" in Cartography.xcodeproj
*** Building scheme "Kingfisher" in Kingfisher.xcworkspace
*** Building scheme "PageMenuFramework" in PageMenu.xcodeproj
*** Building scheme "PageMenu" in PageMenu.xcodeproj
*** Building scheme "SwiftHEXColors" in SwiftHEXColors.xcodeproj
*** Building scheme "HTTPStatusCodes" in HTTPStatusCodes.xcodeproj
*** Building scheme "SwiftKeychainWrapper" in SwiftKeychainWrapper.xcodeproj
*** Building scheme "SwiftyJSON iOS" in SwiftyJSON.xcworkspace
*** Building scheme "XCGLogger (iOS)" in XCGLogger.xcodeproj
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/Cartography/Cartography/ViewUtils.swift:40:16: warning: ‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:319:89: warning: use ‘#selector’ instead of explicitly constructing a ‘Selector’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:846:106: warning: use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:908:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/PageMenu/Classes/CAPSPageMenu.swift:934:26: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:129:16: warning: value ‘retrievedString’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:192:13: warning: variable ‘testInt’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:193:13: warning: variable ‘myTestObject’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:208:16: warning: value ‘retrievedObject’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:248:16: warning: value ‘retrievedData’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:129:16: warning: value ‘retrievedString’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:192:13: warning: variable ‘testInt’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:193:13: warning: variable ‘myTestObject’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:208:16: warning: value ‘retrievedObject’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:248:16: warning: value ‘retrievedData’ was defined but never used; consider replacing with boolean test
ld: warning: directory not found for option ‘-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/Developer/Library/Frameworks’
ld: warning: directory not found for option ‘-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/Developer/Library/Frameworks’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:129:16: warning: value ‘retrievedString’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:192:13: warning: variable ‘testInt’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:193:13: warning: variable ‘myTestObject’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:208:16: warning: value ‘retrievedObject’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:248:16: warning: value ‘retrievedData’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:129:16: warning: value ‘retrievedString’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:192:13: warning: variable ‘testInt’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:193:13: warning: variable ‘myTestObject’ was never mutated; consider changing to ‘let’ constant
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:208:16: warning: value ‘retrievedObject’ was defined but never used; consider replacing with boolean test
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftKeychainWrapper/SwiftKeychainWrapperTests/KeychainWrapperTests.swift:248:16: warning: value ‘retrievedData’ was defined but never used; consider replacing with boolean test
ld: warning: directory not found for option ‘-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/Developer/Library/Frameworks’
ld: warning: directory not found for option ‘-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/Developer/Library/Frameworks’
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftyJSON/Source/SwiftyJSON.swift:399:47: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftyJSON/Source/SwiftyJSON.swift:399:47: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftyJSON/Source/SwiftyJSON.swift:399:47: warning: ‘++’ is deprecated: it will be removed in Swift 3
/Users/crifan/dev/dev_root/daryun/JianDao2/JianDao2/JianDao2iOS/JianDao2/Carthage/Checkouts/SwiftyJSON/Source/SwiftyJSON.swift:399:47: warning: ‘++’ is deprecated: it will be removed in Swift 3

然后去把对应的库,加入到项目中:

然后一点点拖动到项目的:

Targets-》General-》Linked Frameworks and Libraries

然后再去添加对应的脚本:

转载请注明:在路上 » [记录]使用Carthage去管理iOS第三方库

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.218 seconds, using 22.21MB memory