Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload to iTunesConnect failing

I am getting this error and warning for all the frameworks i have used in my project when i try to upload the archive on Itunes connect.

ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "XXXX!.app/Frameworks/BRYXBanner.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and arm64(machine code), while the nested bundle Mach-O contains armv7(bitcode) and arm64(bitcode). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting." WARNING ITMS-90080: "The executable 'Payload/XXXX!.app/Frameworks/Bolts.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library."

WARNING ITMS-90080: "The executable 'Payload/XXXX!.app/Frameworks/Bolts.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library."

I think it is an itunes problem since i reverted the code to an older version on github which i had already uploaded and tried but Again while uploading the Archive I am getting the same error for all frameworks.

What can be done to fix this?

like image 771
subodh1989 Avatar asked Jun 04 '16 20:06

subodh1989


1 Answers

It was off in settings at both places but still didnt work..so i added this to pod file and it worked :

post_install do |installer| 
  installer.pods_project.targets.each do |target| 
    target.build_configurations.each do |config| 
      config.build_settings['ENABLE_BITCODE'] = 'NO' 
    end 
  end 
end 
like image 179
subodh1989 Avatar answered Nov 15 '22 17:11

subodh1989