ios - Running pod update changes Pods build settings -



ios - Running pod update changes Pods build settings -

when run

pod upate

against podfile build settings architectures section pods project changed:

supported platforms changes os x (from ios) build active architectures changes yes (from no) base sdk changes no sdk (latest os x) latest ios

i don't know why it's changing that. i'm having (or not having) in podspec file dependencies? here illustration of 1 of podspec files:

pod::spec.new |spec| spec.name = 'pi-ios-sdk' spec.version = '1.2.0' spec.license = { :type => 'copyright', :text => 'copyright 2014 <...>. rights reserved.' } spec.homepage = 'http://<...>.com/' spec.authors = '<...> grid mobile frameworks team' spec.summary = '<...> identity authentication grid projects.' spec.description = 'the <...> identity client ios sdk framework (pi-ios-client) assists in accessing services provided <...> identity api.' spec.ios.deployment_target = '7.1' spec.requires_arc = true spec.source = { :git => 'ssh://git@devops-tools.<...>.com/mp/pi-ios-sdk.git', :tag => 'tag/1.2.0' } spec.source_files = 'framework/src/xcode/pi-ios-client/*.{h,m}' spec.header_dir = 'pi-ios-client' spec.exclude_files = 'framework/src/xcode/pi-ios-client/pgmpitokenrefreshoperationtests.m' spec.ios.frameworks = 'foundation', 'uikit' end

and podfile:

platform :ios, "7.1" target "courselistclient" pod 'core-ios-sdk', '1.2.0' pod 'pi-ios-sdk', '1.2.0' pod 'classroom-ios-library', '0.1.0-snapshot' end target "courselistclienttests" pod 'core-ios-sdk', '1.2.0' pod 'pi-ios-sdk', '1.2.0' pod 'classroom-ios-library', '0.1.0-snapshot' end

i'm thinking - having same dependencies test target unnecessary, else need change? give thanks you.

add @ end of podfile :

post_install |installer_representation| projectsdk = nil puts"updating of pod targets not default only_active_arch debug" installer_representation.project.targets.each |target| target.build_configurations.each |config| config.build_settings['only_active_arch'] = 'no' if projectsdk.nil? projectsdk = config.build_settings['sdkroot'] end end end puts "updating only_active_arch project, well. while project settings aren't supposed matter, i've not found case." puts "also setting base of operations sdk of project match of targets (doesn't matter one); otherwise defaults no sdk (latest os x)" installer_representation.project.build_configurations.each |config| config.build_settings['only_active_arch'] = 'no' config.build_settings['sdkroot'] = projectsdk end end

source: supported platforms, base of operations sdk, build active architecture settings reverted after pod update

if using latest gem (gem install cocoapods --pre), replace 2 ".project" above ".pods_project"

regards

ios cocoapods

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -