From 7be283ba8c20a4e25951d331d1ba7a47183a2edc Mon Sep 17 00:00:00 2001 From: Ivan Pusic Date: Wed, 7 Sep 2016 02:43:05 +0200 Subject: [PATCH 1/2] add production-build notice to readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ad46100c3..6184d88f8 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,13 @@ react-native link react-native-image-crop-picker - [Optional] If you want to use camera picker in your project, add following to `AndroidManifest.xml` - `` +#### Production build + +##### iOS + +If you are using pre-built frameworks from `ios/ImageCropPickerSDK`, then before deploying app to production you should strip off simulator ARCHs from these, or you can add frameworks from `Libraries/imageCropPicker/Libraries/_framework_name_.xcodeproj/Products/_framework_name_.framework` to Embedded Binaries instead of pre-built ones. +Related issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/61. + ## How it works? It is basically wrapper around few libraries From 7a043bf2704dd7eed69c303a132c84a5627a19e6 Mon Sep 17 00:00:00 2001 From: Ivan Pusic Date: Wed, 7 Sep 2016 17:03:37 +0200 Subject: [PATCH 2/2] more details about production build --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6184d88f8..970dfe80e 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,12 @@ react-native link react-native-image-crop-picker If you are using pre-built frameworks from `ios/ImageCropPickerSDK`, then before deploying app to production you should strip off simulator ARCHs from these, or you can add frameworks from `Libraries/imageCropPicker/Libraries/_framework_name_.xcodeproj/Products/_framework_name_.framework` to Embedded Binaries instead of pre-built ones. Related issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/61. +Details for second approach: + +1. Remove the pre-built frameworks from `Embedded Binaries` +2. Build for Device +4. Add the newly built binaries for both frameworks to `Embedded Binaries` (located at `Libraries/imageCropPicker/Libraries/_framework_name_.xcodeproj/Products/_framework_name_.framework`) + ## How it works? It is basically wrapper around few libraries