You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ios/cocoapods.md
+21-26Lines changed: 21 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@
3
3
### CocoaPods integration
4
4
5
5
#### Requirements
6
-
- Xcode 10.1
7
-
- PSPDFKit 8.1.3 for iOS or later
8
-
- react-native >= 0.57.8
9
-
- CocoaPods >= 1.5.3
6
+
- Xcode 10.2.1
7
+
- PSPDFKit 8.4.0 for iOS or later
8
+
- react-native >= 0.59.9
9
+
- CocoaPods >= 1.7.2
10
10
11
11
#### Getting Started
12
12
@@ -16,22 +16,24 @@ Lets create a simple app that integrates PSPDFKit using CocoaPods.
16
16
2. Create the app with `react-native init YourApp`.
17
17
3. Step into your newly created app folder: `cd YourApp`
18
18
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
19
-
5.IMPORTANT: Do not link module react-native-pspdfkit: Do not use react-native link react-native-pspdfkit
20
-
6.Create the folder `ios/PSPDFKit` and copy `PSPDFKit.framework` and `PSPDFKitUI.framework` into it.
19
+
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.)
20
+
6.Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
21
21
7. Open ios/YourApp.xcodeproj in Xcode: open ios/YourApp.xcodeproj
22
-
8. Make sure the deployment target is set to 10.0 or higher:
22
+
8. Make sure the deployment target is set to 11.0 or higher:
18. Embed `YourApp/ios/PSPDFKit/PSPDFKit.framework` and `YourApp/ios/PSPDFKit/PSPDFKitUI.framework` (not the copies from `YourApp/ios/Pods/`) by drag and dropping it into the "Embedded Binaries" section of the "YourApp" target (Select "Create groups"). This will also add it to the "Linked Frameworks and Libraries" section:
19. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
60
+
14. Run `pod install`
61
+
15. Open the newly created workspace: `YourApp.workspace`
62
+
16. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
68
63

69
-
20. Replace the default component from `index.ios.js` with a simple touch area to present the bundled PDF:
64
+
17. Replace the default component from `index.ios.js` with a simple touch area to present the bundled PDF:
0 commit comments