ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.09k stars 1.55k forks source link

RSKImageCropper.framework contains unsupported architectures '[x86_64, i386]' #76

Closed ghost closed 8 years ago

ghost commented 8 years ago

Getting the following when I try to upload the iOS app using Application Loader. No issues with Android.

Package(s) were not uploaded because they had problems:
    /var/folders/l0/mnr9xkh14bgfg2bxt_p36y6h0000gn/T/05ED8030-5775-425E-BA0E-A0D873EED816/1155871701.itmsp - Error Messages:
        ERROR ITMS-90087: "Unsupported Architectures. The executable for myApp.app/Frameworks/QBImagePicker.framework contains unsupported architectures '[x86_64, i386]'."
        ERROR ITMS-90087: "Unsupported Architectures. The executable for myApp.app/Frameworks/RSKImageCropper.framework contains unsupported architectures '[x86_64, i386]'."
        ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "myApp.app/Frameworks/QBImagePicker.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(bitcode and machine code) and arm64(bitcode and machine code), while the nested bundle Mach-O contains X86_64ALL(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."
        ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "myApp.app/Frameworks/RSKImageCropper.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(bitcode and machine code) and arm64(bitcode and machine code), while the nested bundle Mach-O contains X86_64ALL(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."
        ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'myApp.app/Frameworks/QBImagePicker.framework/QBImagePicker' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
        ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'myApp.app/Frameworks/RSKImageCropper.framework/RSKImageCropper' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
        ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
ivpusic commented 8 years ago

duplicate of https://github.com/ivpusic/react-native-image-crop-picker/issues/61

ghost commented 8 years ago

@ivpusic Okay, I just tried what is suggested in #61 but now, I'm getting the following error Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib

ivpusic commented 8 years ago

my recommendation is to use cocoa pods to install dependencies. Check readme

ghost commented 8 years ago

@ivpusic The only library used is this one (react-native-image-crop-picker). I'm not sure if I understood the steps you mentioned in #61. What does the line in bold means? Add those back?

"go to project General tab, scroll down to Embedded binaries. You will see that there are two pre-built frameworks. You can remove them, build project for Device => this will produce Frameworks built for Device platform. Click + under Embedded binaries, and now you can add these two framework"

This is how mine looks before I archive. Is this correct?

screen shot 2016-09-18 at 11 46 42 am
ivpusic commented 8 years ago

you have to add it to Embedded binaries section in order to work on real device

ghost commented 8 years ago

@ivpusic I think that's what I did earlier. I added them back, if I add them back I'm getting the same following error again while uploading using application loader. RSKImageCropper.framework contains unsupported architectures '[x86_64, i386]

This is how it looks now. Is this correct?

screen shot 2016-09-18 at 1 47 51 pm
ivpusic commented 8 years ago

https://github.com/ivpusic/react-native-image-crop-picker#non-cocoapods-users-1 check production build steps from here

skvaghasiya commented 7 years ago

@ivpusic i have a got error. please check this question - http://stackoverflow.com/questions/43680933/payumoney-sdk-framework-contains-unsupported-architectures-x86-64-i386 error

please help me.