@@ -22,22 +22,20 @@ We strongly encourage you to contribute to our repository. Find out more in our
2222
2323### From Project to Output
2424
25+ - Build using the iOS sdk (Requires an iOS Simulator to be installed)
2526``` bash
26- # Build using the iOS sdk
27- # This method requires an iOS Simulator to be installed
28- swift run public-api-diff
29- project
30- --platform iOS
31- --new " develop~https://github.com/Adyen/adyen-ios.git"
27+ swift run public-api-diff \
28+ project \
29+ --platform iOS \
30+ --new " develop~https://github.com/Adyen/adyen-ios.git" \
3231 --old " 5.12.0~https://github.com/Adyen/adyen-ios.git"
3332```
34-
33+ - Build using the macOS sdk
3534``` bash
36- # Build using the macOS sdk
37- swift run public-api-diff
38- project
39- --platform macOS
40- --new " main~https://github.com/Adyen/adyen-swift-public-api-diff"
35+ swift run public-api-diff \
36+ project \
37+ --platform macOS \
38+ --new " main~https://github.com/Adyen/adyen-swift-public-api-diff" \
4139 --old " 0.4.0~https://github.com/Adyen/adyen-swift-public-api-diff"
4240```
4341
@@ -65,11 +63,22 @@ OPTIONS:
6563</details >
6664
6765### From ` .swiftinterface ` to Output
68-
66+
67+ ** 1.** Build 2 versions of your project with ` BUILD_LIBRARY_FOR_DISTRIBUTION=YES `
6968``` bash
70- swift run public-api-diff
71- swift-interface
72- --new " new/path/to/project.swiftinterface"
69+ xcodebuild clean build \
70+ -scheme " YOUR_TARGET_NAME" \
71+ -derivedDataPath .build \
72+ -sdk " $( xcrun --sdk iphonesimulator --show-sdk-path) " \
73+ -destination " generic/platform=iOS" \
74+ BUILD_LIBRARY_FOR_DISTRIBUTION=YES
75+ ```
76+
77+ ** 2.** Provide the ` .swiftinterface ` files to the public api diff
78+ ``` bash
79+ swift run public-api-diff \
80+ swift-interface \
81+ --new " new/path/to/project.swiftinterface" \
7382 --old " old/path/to/project.swiftinterface"
7483```
7584
0 commit comments