ReactiveCocoa / ReactiveObjC

The 2.x ReactiveCocoa Objective-C API: Streams of values over time
MIT License
2.6k stars 496 forks source link

Can't upload project to appstore. #113

Closed Yura-Savchuk closed 7 years ago

Yura-Savchuk commented 7 years ago

I am use ReactiveObjC in my Objective C project. Everything was fine, but I recently decide to add few features on Swift. And now when I upload archive to itunce from xcode it give next error:

iTunes Store operation failed. Invalid Swift Support. The file StoryUa.app/Frameworks/ReactiveObjC doesn’t have the correct file type for this location. Ensure you’re using the correct file, rebuild your app using the current public (GM) version of Xcode, and resubmit it.

mdiep commented 7 years ago

Do you have ReactiveObjC.framework in StoryUa.app/Frameworks? Or some other file?

Yura-Savchuk commented 7 years ago

@mdiep No, I have only "ReactiveObjC" folder with files in the StoryUa.app/Frameworks

mdiep commented 7 years ago

That's the issue. You haven't copied ReactiveObjC.framework into your app bundle correctly.

Yura-Savchuk commented 7 years ago

@mdiep But I have ReactiveObjc.fragmework in Linked Frameworks and Libraries

mdiep commented 7 years ago

The framework still needs to be copied into the app bundle.

Yura-Savchuk commented 7 years ago

@mdiep I am not understand what is app bundle. Can you explain me, please.

mdiep commented 7 years ago

If you're using Carthage, you can make sure you've followed the instructions here.

If you're using CocoaPods, they probably have similar instructions somewhere.

This isn't a ReactiveObjC-specific problem. Unfortunately I'm not able to provide more support than that.

Yura-Savchuk commented 7 years ago

@mdiep I am add ReactiveObjC to my project as git submodule, as written in the README file to this repository.

Yura-Savchuk commented 7 years ago

I found the mistake. That is was because I am not correctly done 5 step of Importing ReactObjC Instruction There is written:

Add ReactiveObjC.framework. RAC must also be added to any "Copy Frameworks" build phase. If you don't already have one, simply add a "Copy Files" build phase and target the "Frameworks" destination.

I understand that step as create "Copy Files" group and add "ReactiveObjC" folder as copy item. But I must to add ReactiveObjC.framework file. (not a folder)

Now I update my app successfully, Thank you @mdiep for support.