1

I have created ReactiveCocoa.framework with Carthage and it works fine on my phone and simulator. But when I uploaded it to the iTune Connect,there comes out an error enter image description here

It seems that the imported ReactiveCocoa.frame don't support architectures 'x86_64,i386',So I use lipo tool to read the framework's supporting architectures enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Leon.Yue
  • 38
  • 6

1 Answers1

1

Your .framework file is an "universal framework". It contains binaries built for the iOS device and the simulator (that's what "architectures 'x86_64, i386`" means).

And you can't submit a binary built for the simulator to the iTunes Connect. As described in this answer, you have to "strip" the simulator architectures from the framework. As you use Carthage, you can use

carthage copy-frameworks

command. Use it in a script in "Build Phases", as describe in the Carthage documentation.

Community
  • 1
  • 1
Michał Ciuba
  • 7,876
  • 2
  • 33
  • 59