Skip to content

Commit 31cdb01

Browse files
author
Rad Azzouz
committed
Simplify the steps which create the CocoaPods Artifacts
1 parent 1e80ac0 commit 31cdb01

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

ios/Experimental_Mac_Catalyst_Support.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@ Below, we walk you trough how to create your own local CocoaPods Artifacts that
1818

1919
### Getting Started
2020

21-
#### Creating the CocoaPods Artifacts.
21+
#### Creating the CocoaPods Artifacts
2222

2323
1. If you’re an existing customer, download PSPDFKit for iOS from the [customer portal](https://customers.pspdfkit.com/). Otherwise, if you don’t already have PSPDFKit, [sign up for our 60-day trial](https://pspdfkit.com/try/) and you will receive an email with the download instructions.
24-
2. Copy `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` in a writable location - say the `~/Downloads` folder.
25-
3. Remove `strip-bitcode.sh` and `strip-framework.sh` from `PSPDFKit.xcframework/ios-x86_64-maccatalyst/PSPDFKit.framework`:
24+
2. Copy `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` in a writable location. We'll use the `~/Downloads` folder.
25+
3. Remove `strip-bitcode.sh` and `strip-framework.sh` from `PSPDFKit.xcframework/*/PSPDFKit.framework`:
2626

2727
```sh
28-
rm PSPDFKit.xcframework/ios-x86_64-maccatalyst/PSPDFKit.framework/strip-bitcode.sh
29-
rm PSPDFKit.xcframework/ios-x86_64-maccatalyst/PSPDFKit.framework/strip-framework.sh
28+
rm PSPDFKit.xcframework/*/PSPDFKit.framework/strip-*.sh
3029
```
3130

32-
3. Select `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework`, right-click on them, then create an archive buy compressing them into a `.zip` file.
31+
4. Create an archive (`.zip` file) by compressing `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` into `PSPDFKit.zip`:
3332
![compress-xcframeworks](../screenshots/compress-xcframeworks.png)
34-
4. Rename the resulting `Archive.zip` to `PSPDFKit.zip`
33+
5. Rename the resulting `Archive.zip` to `PSPDFKit.zip`.
3534

3635
#### Integrating PSPDFKit in a New React Native Project
3736

@@ -42,7 +41,7 @@ Let's create a simple app that integrates PSPDFKit and uses the `react-native-ps
4241
3. Step into your newly created app folder: `cd YourApp`
4342
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
4443
5. Install all the dependencies for the project: `yarn install`. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.)
45-
6. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add the CocoaPods URLs.
44+
6. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add the CocoaPods URLs:
4645

4746
```diff
4847
- platform :ios, '9.0'
@@ -83,7 +82,7 @@ target 'YourApp' do
8382
end
8483
```
8584

86-
7. In the `ios` folder, copy the CocoaPods artifatcs that you created earlier: `cp PSPDFKit.zip YourApp/ios/`
85+
7. In the `ios` folder, copy the CocoaPods artifatcs that you created earlier: `cp PSPDFKit.zip YourApp/ios/`.
8786
8. In the `ios` folder, create a new `PSPDFKit.podspec` file with the following content:
8887

8988
```podspec

0 commit comments

Comments
 (0)