2014-10-07 8 views
7

निर्माण जब मैंरनिंग फली परिवर्तन अद्यतन फलियाँ सेटिंग्स

pod upate 
फलियाँ परियोजना के लिए आर्किटेक्चर अनुभाग के लिए मेरे Podfile कुछ सेटिंग बिल्ड के खिलाफ

चलाने बदल रहे हैं:

  1. समर्थित प्लेटफ़ॉर्म परिवर्तन ओएस एक्स के लिए (आईओएस से)
  2. सक्रिय आर्किटेक्चर बनाएं केवल हां में परिवर्तन (संख्या से)
  3. बेस एसडीके नवीनतम आईओएस से कोई एसडीके (नवीनतम ओएस एक्स) में बदलता है

मुझे नहीं पता कि यह क्यों बदल रहा है। क्या यह मेरी निर्भरताओं के लिए मेरे पॉडस्पेक फ़ाइल में कुछ (या नहीं) हो सकता है?

Pod::Spec.new do |spec| 
    spec.name     = 'pi-ios-sdk' 
    spec.version    = '1.2.0' 
    spec.license    = { :type => 'Copyright', :text => 'Copyright 2014 <...>. All 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 the services provided by the <...> Identity API.' 
    spec.ios.deployment_target = '7.1' 
    spec.requires_arc   = true 
    spec.source    = { :git => 'ssh://[email protected]<...>.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 

और मेरे Podfile: यहाँ मेरी podspec फ़ाइलों में से एक का एक उदाहरण है

platform :ios, "7.1" 

target "CourseListClient" do 
    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" do 
    pod 'core-ios-sdk', '1.2.0' 
    pod 'pi-ios-sdk', '1.2.0' 
    pod 'classroom-ios-library', '0.1.0-SNAPSHOT' 
end 

मैं सोच रहा हूँ - परीक्षण लक्ष्य के लिए उन्हीं निर्भरता होने शायद अनावश्यक है, लेकिन बाकी मैं क्या बदलाव की आवश्यकता? धन्यवाद।

उत्तर

3

अपने Podfile के अंत में इस जोड़ें:

post_install do |installer_representation| 
    projectSDK = nil 

    puts"Updating all of the POD targets to not default to ONLY_ACTIVE_ARCH for debug" 
    installer_representation.project.targets.each do |target| 
     target.build_configurations.each do |config| 
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' 
      if projectSDK.nil? 
       projectSDK = config.build_settings['SDKROOT'] 
      end 
     end 
    end 
    puts "Updating ONLY_ACTIVE_ARCH for the project, as well. While the project settings aren't supposed to matter, I've not found that to be the case." 
    puts "Also setting the base SDK of the project to match that of the targets (doesn't matter which one); otherwise it defaults to No SDK (Latest OS X)" 
    installer_representation.project.build_configurations.each do |config| 
     config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' 
     config.build_settings['SDKROOT'] = projectSDK 
    end 
end 

स्रोत: Supported platforms, base SDK, build active architecture only settings reverted after pod update

आप नवीनतम मणि उपयोग कर रहे हैं (मणि स्थापित cocoapods --pre), 2 ".project" की जगह ".pods_project"

से ऊपर
संबंधित मुद्दे