@@ -215,7 +215,7 @@ adb push /path/to/your/document.pdf /sdcard/document.pdf
215215
216216# ### Getting Started
217217
218- 1. Run `flutter create --org com.example.myapp myapp`.
218+ 1. Run `flutter create --org com.example.myapp myapp`
2192192. Step into your newly created app folder : ` cd myapp`
2202203. Open `pubspec.yaml` and under `dependencies` add
221221
@@ -248,7 +248,23 @@ adb push /path/to/your/document.pdf /sdcard/document.pdf
248248
249249
2502509. Run `flutter packages get` to install the packages.
251- 10. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem :
251+ 10. Open the `Podfile` : ` open ios/Podfile` and edit it as follows:
252+
253+ ` ` ` diff
254+ # Uncomment this line to define a global platform for your project
255+ - # platform :ios, '9.0'
256+ + platform :ios, '12.0'
257+ ...
258+ target 'Runner' do
259+ use_frameworks!
260+ use_modular_headers!
261+
262+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
263+ + pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/pspdfkit-ios/latest.podspec'
264+ end
265+ ` ` `
266+
267+ 11. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem :
252268
253269` ` ` dart
254270import 'dart:io';
@@ -352,9 +368,9 @@ class _MyAppState extends State<MyApp> {
352368}
353369` ` `
354370
355- 11 . In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
356- 12 . Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
357- 13 . Run `flutter run`.
371+ 12 . In `lib/main.dart` replace `YOUR_LICENSE_KEY_GOES_HERE` with your PSPDFKit license key.
372+ 13 . Run `flutter emulators --launch apple_ios_simulator` to launch the iOS Simulator.
373+ 14 . Run `flutter run`.
358374
359375# Example
360376
0 commit comments