React-native-image-crop-picker: Archive fails intermittently with

Created on 29 Aug 2017  路  16Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

"react-native-image-crop-picker": "0.14.1"
"react-native": "0.42.3"
Xcode Version 8.3.3

Platform

  • iOS

Expected behaviour

Archive project is successful consistently.

Actual behaviour

Able to build and run in simulator without issues, but fails most archive attempts. About 1/10 attempts will be successful, an attempt being steps 2-4.
screen shot 2017-08-28 at 6 16 28 pm

Steps to reproduce

  1. Incorporate react-native-image-picker as described in docs.

  2. Copy ImageCropPickerSDK/QBImagePicker.framework and ImageCropPickerSDK/RSKImageCropper.framework into project's ios folder.

  3. Add to Build Phases > Copy Files

  4. Product > Archive

Attachments

CompileC /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/Objects-normal/armv7/ImageCropPicker-400F16F3CF62B860.o ImageCropPicker.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/jiangyu/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/jiangyu/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fembed-bitcode -iquote /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/imageCropPicker-generated-files.hmap -I/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/imageCropPicker-own-target-headers.hmap -I/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/imageCropPicker-all-non-framework-target-headers.hmap -ivfsoverlay /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/all-product-headers.yaml -iquote /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/imageCropPicker-project-headers.hmap -I/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/BuildProductsPath/Release-iphoneos/include -I../../react-native/React -I../../react-native/React/Base -I../../react-native/React/CxxBridge -I../../react-native/React/CxxModule -I../../react-native/React/CxxUtils -I../../react-native/React/Executors -I../../react-native/React/Modules -I../../react-native/React/Profiler -I../../react-native/React/Views -I../../react-native/Libraries/Image -I../../react-native/Libraries/Image/__tests__ -I/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/DerivedSources/armv7 -I/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/DerivedSources -F/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/BuildProductsPath/Release-iphoneos -F/Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/RSKImageCropper/build/Debug-iphoneos -MMD -MT dependencies -MF /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/Objects-normal/armv7/ImageCropPicker-400F16F3CF62B860.d --serialize-diagnostics /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/Objects-normal/armv7/ImageCropPicker-400F16F3CF62B860.dia -c /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m -o /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/IntermediateBuildFilesPath/imageCropPicker.build/Release-iphoneos/imageCropPicker.build/Objects-normal/armv7/ImageCropPicker-400F16F3CF62B860.o

In file included from /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:8:
In file included from /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:15:
In file included from ../../react-native/Libraries/Image/RCTImageLoader.h:12:
In file included from /Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/BuildProductsPath/Release-iphoneos/include/React/RCTBridge.h:13:
/Users/jiangyu/Library/Developer/Xcode/DerivedData/coho-bjinzulzvsfqxpcgpoffhcszpiie/Build/Intermediates/ArchiveIntermediates/coho/BuildProductsPath/Release-iphoneos/include/React/RCTBridgeModule.h:55:11: warning: duplicate protocol definition of 'RCTBridgeModule' is ignored
@protocol RCTBridgeModule <NSObject>
          ^
In file included from /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:8:
In file included from /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:14:
../../react-native/React/Base/RCTBridgeModule.h:55:11: note: previous definition is here
@protocol RCTBridgeModule <NSObject>
          ^
In file included from /Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:8:
/Users/jiangyu/coho-release-branch/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:26:9: fatal error: 'RSKImageCropper/RSKImageCropper.h' file not found
#import "RSKImageCropper/RSKImageCropper.h"
        ^
1 warning and 1 error generated.

Please help! We're doing daily builds and it often takes 2-3 hours to archive successfully!

Most helpful comment

None of this works for me.

All 16 comments

Update: I have upgraded to 0.16.0, this issue is still happening, albeit somewhat less often...

0.16.1, this issue is still happening

I have the same issue

You need to add RSKImageCropper.framework and QBImagePicker.framework to Embedded Binaries. This problem can be solved

@CCYQ1995 Do you mean to the "Embed Frameworks" build phase? Could you post a screenshot?

@CCYQ1995 That worked for a while, but then it started failing again...

@IjzerenHein You can take a closer look at the user guidance written by the author, in which there are detailed instructions under step 2 "After this run pod install".

@wildQueequeg Really? I have tried a few times here, are still able to work properly

@CCYQ1995 Which RSKImageCropper.framework and QBImagePicker.framework should be added? I'm seeing a few in different locations...
Tried each set, still failing.

screen shot 2017-10-13 at 5 25 22 pm
screen shot 2017-10-13 at 5 25 31 pm

@wildQueequeg
1
2

None of this works for me.

None of these work for me either. After upgrading to 0.16.0, it happened less, but after a few weeks it's failing most of the time again.

I am using version 0.14.4. This problem from my solution to now has not been there. I do not know if your operation is a problem, but it is recommended that you look at the author's installation guide, perhaps you can find the problem

This is still an issue. Nothing above seems to resolve this.

can you try this version https://github.com/ivpusic/react-native-image-crop-picker/releases/tag/v0.19.1? This issue should be fixed there

I'm gonna try it out with 0.19.1.

Did a release build and an archive without problems, looking good so far. 馃憤 Will let you know in case it starts failing again :)

Was this page helpful?
0 / 5 - 0 ratings