Run pod install after mentioning several frameworks to install Podfile. All dependencies run great on debug mode.
Then before release, we changed the pod architecture to iOS 11, arm64, signing to automatic and selected our team (similar to our core project file).
Archived the project and then submitted it to iTunes connect.
The submission to be accepted after processing on iTunes connect
I received this message in my email:
Invalid bundle: Ensure that app executables and bundled frameworks use consistent architectures.
CocoaPods : 1.3.1
Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
RubyGems : 2.5.2
Host : Mac OS X 10.13 (17A405)
Xcode : 9.0 (9A235)
Git : git version 2.13.5 (Apple Git-94)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories :
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
platform :ios, '9.0'
use_frameworks!
target 'te' do
pod 'RecordButton'
pod 'FSPagerView'
end
target 'te MessagesExtension' do
pod 'RecordButton'
pod 'FSPagerView'
end
Sample project: https://we.tl/A9ja03mDur
Please provide a sample project that makes it easy to demonstrate the issue.
@dnkoutso @benasher44 I have an iMessage app that includes a few Pods Framework. I have already ensured consistant architecture in all the frameworks, while uploading through the Application loader: ie arm64 and tried resubmitting again. All process' get executed but after submission to the iTunes connect and a few minutes of processing, I get the above error in my email.
We have also additionally tried these:
None of the above solutions work, no matter what I do.
Please help.
Sample project: https://we.tl/A9ja03mDur
Configurations: Xcode 9, latest iOS 11.0
STEPS TO REPRODUCE
@dnkoutso @benasher44 Please help
I too was getting this error and tried many things. The last thing I tried was to go through every target in the pods project and make sure the deployment target is set to 11.0 as well. And for good measure, make sure it's set to 11.0 in the Pods project as well.
@cyu I did try that too but there is a dynamic library that in is the project. I am able to get it passed the processing stage without the dynamic library but the moment I include the dylib, this error reoccurs on submission.
I have this issue with my iMessage app. However, uploading the same code with an iOS 10 deployment target is successful. Simply using an iOS 11 deployment target is where the problem starts. As far as I can tell, the pods used are not the issue鈥擨 tried a few different pods in separate builds as a sanity check. Uploading a build with the generated workspace and no pods was also not an issue.
The sample project above appears to have been removed, but this issue is very easy to reproduce. Just use the template iMessage App project in Xcode 9+, add a pod and upload a build. After the build is done processing, you鈥檒l receive an email from iTunes Connect that states:
Invalid Bundle - Ensure that app executables and bundled frameworks use consistent architectures.
I鈥檓 using CocoaPods 1.3.1 and Xcode 9.1. I鈥檝e tried CocoaPods 1.4.0.beta.2 too.
@cyu's suggestion worked for me.
I wrote a post_install script to automate the process.
Since it only affects iTunes builds, I only set the deployment target for non-Debug schemes' build settings.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.name != 'Debug'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end
Seems I was a bit hasty in my testing. @cyu's solution is working for me. Thanks for the post_install hook, @ardalahmet.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
Most helpful comment
I too was getting this error and tried many things. The last thing I tried was to go through every target in the pods project and make sure the deployment target is set to 11.0 as well. And for good measure, make sure it's set to 11.0 in the Pods project as well.