Fail to compile using carthage 0.38 and Xcode 13.1
seemeroland opened this issue · 2 comments
seemeroland commented
Describe the problem
Lock.swift fails to import Auth0 when trying to install dependencies using Carthage with carthage bootstrap --use-xcframeworks --platform iOS
What was the expected behavior?
Expect carthage to successfully build dependencies using carthage bootstrap --use-xcframeworks --platform iOS
Reproduction
Cartfile:
github "auth0/Auth0.swift" ~> 1.38
github "auth0/Lock.swift" ~> 2.24
github "auth0/JWTDecode.swift" ~> 2.6
Cartfile.resolved:
github "auth0/Auth0.swift" "1.38.0"
github "auth0/JWTDecode.swift" "2.6.3"
github "auth0/Lock.swift" "2.24.0"
github "auth0/SimpleKeychain" "0.12.5"
Using carthage 0.38.0 and Xcode 13.1, Run carthage bootstrap --use-xcframeworks --platform iOS
carthage bootstrap --use-xcframeworks --platform iOS
*** Checking out JWTDecode.swift at "2.6.3"
*** Checking out SimpleKeychain at "0.12.5"
*** Checking out Auth0.swift at "1.38.0"
*** Checking out Lock.swift at "2.24.0"
*** xcodebuild output can be found in /var/folders/1t/bs1y7x454zx7k5q9hwzz90940000gp/T/carthage-xcodebuild.xG3x1L.log
*** Building scheme "JWTDecode-iOS" in JWTDecode.xcodeproj
*** Building scheme "SimpleKeychain-iOS" in SimpleKeychain.xcodeproj
*** Building scheme "Auth0.iOS" in Auth0.xcodeproj
*** Building scheme "Lock" in Lock.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project ${localdir}/Carthage/Checkouts/Lock.swift/Lock.xcodeproj -scheme Lock -configuration Release -derivedDataPath /Users/${user}/Library/Caches/org.carthage.CarthageKit/DerivedData/13.1_13A1030d/Lock.swift/2.24.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/1t/bs1y7x454zx7k5q9hwzz90940000gp/T/Lock.swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in ${localdir}/Carthage/Checkouts/Lock.swift)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/1t/bs1y7x454zx7k5q9hwzz90940000gp/T/carthage-xcodebuild.xG3x1L.log
Excerpt from xcodebuild log:
${localdir}/Carthage/Checkouts/Lock.swift/Lock/EnterpriseActiveAuthInteractor.swift:24:8: error: no such module 'Auth0'
import Auth0
^
** ARCHIVE FAILED **
The following build commands failed:
CompileSwift normal armv7 (in target 'Lock.iOS' from project 'Lock')
CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler (in target 'Lock.iOS' from project 'Lock')
CompileSwift normal arm64 (in target 'Lock.iOS' from project 'Lock')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Lock.iOS' from project 'Lock')
(4 failures)
Can the behavior be reproduced using the included Lock.swift demo app?
Doesn't use carthage
Environment
Please provide the following:
- Version of
Lock.swift
used: 2.24.0 - Version of iOS: n/a
- Version of Xcode: 13.1
Widcket commented
Hi @seemeroland, the fix is now out in 2.24.1.
Widcket commented
Thanks for the report!