Skip to content

Commit d158879

Browse files
author
Rad Azzouz
committed
Update integration steps
1 parent c1d0fc6 commit d158879

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,23 +233,26 @@ adb push /path/to/your/document.pdf /sdcard/document.pdf
233233

234234
![iOS View controller-based status bar appearance](screenshots/ios-info-plist-statusbarappearance.png)
235235

236-
8. Run `flutter packages get` to install the packages.
237-
9. Open the `Podfile`: `open ios/Podfile` and edit it as follows:
236+
8. If your application is targeting iOS versions **prior to iOS 12.2** and your application **does not already contain any Swift code**, then you need to make sure Xcode bundles Swift standard libraries with your application distribution. To to so, open your target Build Settings and enable `Always Embed Swift Standard Libraries`:
237+
238+
![Always Embed Swift Standard Libraries](screenshots/ios-always-embed-swift-standard-libraries.png)
239+
240+
9. Run `flutter packages get` to install the packages.
241+
10. Open the `Podfile`: `open ios/Podfile` and edit it as follows:
238242

239243
```diff
240244
# Uncomment this line to define a global platform for your project
241245
- # platform :ios, '9.0'
242246
+ platform :ios, '11.0'
243-
+ use_frameworks!
244247
...
245248
target 'Runner' do
246-
249+
use_frameworks!
247250
+ pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/cocoapods/YOUR_COCOAPODS_KEY_GOES_HERE/pspdfkit/latest.podspec'
248251
...
249252
end
250253
```
251254

252-
9. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem:
255+
11. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem:
253256

254257
```dart
255258
import 'dart:io';
@@ -353,9 +356,9 @@ class _MyAppState extends State<MyApp> {
353356
}
354357
```
355358

356-
10. In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
357-
11. Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
358-
12. Run `flutter run`.
359+
11. In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
360+
12. Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
361+
13. Run `flutter run`.
359362

360363
# Example
361364

406 KB
Loading

0 commit comments

Comments
 (0)