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
1. Import the header file ***"ComPDFKit/ComPDFKit.h"*** to `AppDelegate.m`.
286
-
287
-
2. Follow the code below and call the method `CPDFKit verifyWithKey:@"LICENSE_KEY"` in `- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions`. You need to replace the **LICENSE_KEY** with the license you obtained.
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.12.0.podspec'
340
-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.12.0.podspec'
319
+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/1.13.0.podspec'
320
+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/1.13.0.podspec'
341
321
342
322
# Enables Flipper.
343
323
#
@@ -352,35 +332,37 @@ target 'PDFView_RN' do
352
332
end
353
333
```
354
334
355
-
5. Go to the **compdfkit_rn/ios** folder and run the `pod install` command:
335
+
3. Go to the **compdfkit_rn/ios** folder and run the `pod install` command:
356
336
357
337
```bash
358
338
pod install
359
339
```
360
340
361
-
6. Open your project's Workspace in Xcode:
341
+
**Note:** If SSL network requests fail to download the `ComPDFKit` library when you run `pod install`, you can see the processing method in [Troubleshooting](#Troubleshooting).
342
+
343
+
4. Open your project's Workspace in Xcode:
362
344
363
345
```bash
364
346
open ios/PDFView_RN.xcworkspace
365
347
```
366
348
367
-
7. Make sure the deployment target is set to 10.0 or higher:
349
+
5. Make sure the deployment target is set to 10.0 or higher:
368
350
369
351
<imgsrc="Image/1-1.png"width="80%"height="80%"/>
370
352
371
-
8. Import resource file,***"OpenPDFModule.swift"*** is the bridging file for connecting React Native to the iOS native module.
353
+
6. Import resource file,***"OpenPDFModule.swift"*** is the bridging file for connecting React Native to the iOS native module.
9. Search for **bridging** in the **Build Settings** and locate the **Objective-C Bridging Header** option. Then, enter the file path of the header file ***"ComPDFKit_RN-Bridging-Header.h"***:
357
+
7. Search for **bridging** in the **Build Settings** and locate the **Objective-C Bridging Header** option. Then, enter the file path of the header file ***"ComPDFKit_RN-Bridging-Header.h"***:
10. Add the PDF document you want to display to your application by dragging it into your project. On the dialog that's displayed, select Finish to accept the default integration options. You can use "developer_guide_ios.pdf" as an example.
361
+
8. Add the PDF document you want to display to your application by dragging it into your project. On the dialog that's displayed, select Finish to accept the default integration options. You can use "developer_guide_ios.pdf" as an example.
380
362
381
363
<imgsrc="Image/1-7.png"width="80%"height="80%" />
382
364
383
-
11. To protect user privacy, before accessing the sensitive privacy data, you need to find the ***"Info"*** configuration in your iOS 10.0 or higher iOS project and configure the relevant privacy terms as shown in the following picture.
365
+
9. To protect user privacy, before accessing the sensitive privacy data, you need to find the ***"Info"*** configuration in your iOS 10.0 or higher iOS project and configure the relevant privacy terms as shown in the following picture.
384
366
385
367
<imgsrc="Image/1-8.png"width="80%"height="80%" />
386
368
@@ -396,9 +378,49 @@ open ios/PDFView_RN.xcworkspace
396
378
397
379
<key>NSPhotoLibraryUsageDescription</key>
398
380
<string>Your consent is required before you could access the function.</string>
381
+
382
+
<key>NSAppTransportSecurity</key>
383
+
<dict>
384
+
<key>NSAllowsArbitraryLoads</key>
385
+
<true/>
386
+
</dict>
399
387
```
400
388
389
+
### Apply the License Key
390
+
391
+
ComPDFKit for React Native is a commercial SDK, which requires a license to grant developer permission to release their apps. Each license is only valid for one `bundle ID` or `applicationId` in development mode. Other flexible licensing options are also supported, please contact [our marketing team](mailto:support@compdf.com) to know more.
392
+
393
+
To initialize ComPDFKit using a license key, call either of the following before using any other ComPDFKit APIs or features:
1.SSL network request to download 'ComPDFKit' library failed when cocopods downloaded iOS third-party library
589
+
590
+
If SSL network requests fail to download the `ComPDFKit` library when you run `pod install`, replace the third-party platform download address link of the ComPDFKit library and execute `pod install`
[ComPDFKit](https://www.compdf.com/) has a professional R&D team that produces comprehensive technical documentation and guides to help developers. Also, you can get an immediate response when reporting your problems to our support team.
0 commit comments