Hey Developers I'm facing some strange situation, I'm getting multiples issues related to optimization on Release build configuration, I'm using Xcode 13.2.1
project is separated in 4 markets and multiples frameworks none of the markets have dependencies from each other, issue only appears when the market RefrreshAtPumpAUS Release is build, on the other side for Debug everything is functional and the app build fine.
here's my Podfile:
in order to add the : def adobe_manager_pods into the framework: CoolMasterUtilsFramework
as the project is in 4 different markets had to added in the different markets like this:
target 'RefrreshAtPumpNL' do
# Pods for RefrreshAtPump
common_pods
adobe_manager_pods --> here
target 'RefrreshAtPumpUS' do
# Pods for RefrreshAtPump
common_pods
firebase_pods
adobe_campaign_pods
adobe_manager_pods. --> here
target 'RefrreshAtPumpUK' do
# Pods for RefrreshAtPump
common_pods
adobe_manager_pods --> here
but for the AUS market(RefrreshAtPumpAUS) is quite different already had added similar PODS
target 'RefrreshAtPumpAUS' do
# Pods for RefrreshAtPump
common_pods
firebase_pods
adobe_experience_pods. ->> here
they have this so, I added the 2 remaining that I needed for that specific market.
def adobe_experience_pods
pod 'AEPAudience', '~> 3.0’ ------->> THIS ONE
pod 'ACPUserProfile', '~> 2.2’ ------->> THIS ONE
pod 'AEPEdgeIdentity', '~> 1.0'
pod 'AEPEdgeConsent', '~> 1.0'
pod 'AEPCore', '~> 3.0'
pod 'AEPIdentity', '~> 3.0'
pod 'AEPSignal', '~>3.0'
pod 'AEPLifecycle', '~>3.0'
pod 'AEPUserProfile', '~> 3.0'
pod 'AEPEdge', '~> 1.0'
pod 'AEPMessaging', '~> 1.0'
pod 'AEPAssurance', '~> 3.0', :configurations => ['Debug']
end
so if I run the project in all other markets as RELEASE or DEBUG everything goes well, but only for RELEASE on RefrreshAtPumpAUS
shows errors like this:
I've tried
adding lines inside the RefrreshAtPumpAUS like this:
1.- post_install do |installer|
2.- Pod update
3.- delete all Derived data
4.- in Build settings -> Apple Clang - Code generation -> Optimization level to None[-O0]
5.- in Build settings -> Build active architecture only -> ALL to YES
6.- in podfile -> delete this line use_frameworks! and adding use_modular_headers!
7.- in Build settings -> Swift compiler -> Code generation -> Incremental to all