google / promises

Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Apache License 2.0
3.8k stars 295 forks source link

Bitcode Issue on Xcode 13 when disable it. #199

Closed angelmic closed 1 year ago

angelmic commented 1 year ago

As you all know, Xcode 14 turned off the bitcode option, so I disable it in the Podfile

target.build_configurations.each do |config|
       config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
       config.build_settings.delete 'TVOS_DEPLOYMENT_TARGET'

       # fix for Xcode 14
       config.build_settings['ENABLE_BITCODE'] = 'NO'
       end
     end

But when I use Xcode 13.4.1 to do build project, the following error occurred

ld: 'path/Staging-iphoneos/PromiseKit-iOS/
 PromiseKit.framework/PromiseKit' does not contain bitcode. 

  You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file 'path/PromiseKit-iOS/PromiseKit.framework/PromiseKit' for architecture arm64

How can I fix it ?

faimin commented 1 year ago

the error is in PromiseKit, but the current repo is promises, you should try to confirm your used repo again.