Closed ruslandoga closed 2 years ago
I've also tried carthage bootstrap --platform iOS --use-xcframeworks
with a similar result.
carthage update --platform iOS --use-xcframeworks
completed by updating nimble 9.2.0 -> 9.2.1:
> carthage update --platform iOS --use-xcframeworks
*** Fetching Quick
*** Fetching Starscream
*** Fetching Nimble
*** Fetching RxSwift
*** Checking out Quick at "v4.0.0"
*** Checking out RxSwift at "5.1.3"
*** Checking out Nimble at "v9.2.1"
*** Checking out Starscream at "3.1.1"
*** xcodebuild output can be found in /var/folders/jq/679jhhcn2555my325vb71p2w0000gn/T/carthage-xcodebuild.UscAp1.log
*** Building scheme "Nimble-iOS" in Nimble.xcodeproj
*** Building scheme "Quick-iOS" in Quick.xcworkspace
*** Building scheme "RxCocoa" in Rx.xcworkspace
*** Building scheme "RxRelay" in Rx.xcworkspace
*** Building scheme "RxBlocking" in Rx.xcworkspace
*** Building scheme "RxSwift" in Rx.xcworkspace
*** Building scheme "RxTest" in Rx.xcworkspace
*** Building scheme "Starscream" in Starscream.xcodeproj
but xcode still complains about nimble missing when compiling for tests, I guess it has something to do with me using xcframeworks
, and I couldn't find a place to point xcode to use xcframeworks like in iOS app setup where I could click on root folder in the left sidebar and drag xcframeworks from carthage build folder there.
My problem was I opened the project with xed .
and it opened it in a "package" version. Using open SwiftPhoenixClient.xcodeproj
directly and running tests fixed the problems with finding nimble. Although nimble still fails in some tests:
fatalError("The throwAssertion Nimble matcher can only run on x86_64 platforms with " +
"Objective-C (e.g. macOS, iPhone 5s or later simulators). You can silence this error " +
"by placing the test case inside an #if arch(x86_64) or canImport(Darwin) conditional statement")
https://github.com/Quick/Nimble/issues/851
All tests other than the ones failing with the error above are passing. I'll add tests for the new functionality next.
@dsrees I think this PR is ready for review. I can squash all commits into one if needed.
Closes #202 by adding a V2 serializer support.
@dsrees I've tried but failed to run the tests, so I haven't updated them. I tired
carthage bootstrap --platform iOS
but nimble failed to get installed:I've tried fastlane as well, but it doesn't install carthage packages. Note that I'm on M1, that might be an issue.