-
Notifications
You must be signed in to change notification settings - Fork 18
Upgrading
Marko Justinek edited this page May 12, 2021
·
20 revisions
Dropping Rust dependency. MockServer was moved into a separate project dependency PactSwiftMockServer and is exposed as a XCFramework in PactSwiftMockServer-Dist.
This means there is no need to make changes to the build process in the Xcode project settings.
PactSwift 0.4.0 migrated to XCFrameworks.
- Remove the Build Phase that builds the
libpact_mock_server.abinary using./Scripts/BuildPhases/build-spm-dependencyscript. - Remove
$BUILD_DIR/../../SourcePackages/checkouts/..entry forLibrary Search Pathsin Build Settings. - Optional: Remove
cargoandrustupfromPATH
- Delete your
Carthage/Buildfolder to remove any existing framework bundles. - Build new XCFrameworks by running
carthage build --use-xcframeworks. Any other arguments you build with can be provided like normal. - Remove references to the old frameworks in each of your targets:
- Delete references to Carthage frameworks from the target's Frameworks, Libraries, and Embedded Content section and/or its Link Binary with Libraries build phase.
- Delete references to Carthage frameworks from any Copy Files build phases.
- Delete the target's
carthage copy-frameworksbuild phase, if present.
- Add references to XCFrameworks in each of your targets:
- For an application test target: In the Build Phases settings tab, in the Link Binary With Libraries build phase, add the
PactSwift.xcframeworkfrom the Carthage/Build folder on disk.
- For an application test target: In the Build Phases settings tab, in the Link Binary With Libraries build phase, add the
- Remove
$(FRAMEWORK_SEARCH_PATHS)entry forRunpath Search Pathsin Build Settings for your test target.