Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude 64-bit from ARCHS in a pod push #2012

Closed
ghost opened this issue Apr 4, 2014 · 3 comments
Closed

Exclude 64-bit from ARCHS in a pod push #2012

ghost opened this issue Apr 4, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2014

This is related to issue #1875, but relates to a pod push instead of a pod update.

We have a private Cocoapods repo for some of our libraries, and right now I'm prevented from updating one of the libraries due to arm64 incompatibilities. Although I've set every ARCHS to ARM in my build settings, both in the apps and in cocoapods via http://cameronspickert.com/2014/01/20/remove-the-arm64-architecture-from-cocoapods-targets.html, I'm still seeing that the Libtool, CompileC, and xcodebuild commands in cocoapods are all using standard architectures that include arm64. Is there some argument (or maybe via xcconfig?) that I could use to temporarily use to get this working while we upgrade the codebase to arm64?

Thanks!
Gabriel

――― MARKDOWN TEMPLATE―――――――――――――――――――――――――――――――――

Report

  • What did you do?
    Tried to run a pod push to a private cocoapods repository with app configured to STANDARD_ARCHS_32_BIT
  • What did you expect to happen?
    Was hoping that xcodebuild, CompileC, and Libtool would all recognize the 32-bit only settings.
  • What happened instead?
    All our pods get compiled in arm64 which currently breaks them.

Stack

   CocoaPods : 0.29.0
        Ruby : ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
    RubyGems : 1.3.6
        Host : Mac OS X 10.8.5
       Xcode : 5.1
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
Repositories : master - https://github.com/CocoaPods/Specs.git @ 8e7e6d8f6da821576f7b42fc513532790c8e1bc8
private - https://github.com/gadauto/MM_CocoaPods

Podfile

platform :ios, '6.1'
xcodeproj 'repo/MM3/MM3.xcodeproj'
workspace 'HungryFishPod'
pod 'MMCommonPod', :inhibit_warnings => true
pod 'cocos2d', '2.0'
pod 'box2d'

target 'MM3-Pro' do
  pod 'box2d'
end

post_install do |installer|
    installer.project.targets.each do |target|
        target.build_configurations.each do |configuration|
            target.build_settings(configuration.name)['ARCHS'] = '$(ARCHS_STANDARD_32_BIT)'
        end
    end
end

Podspec

Pod::Spec.new do |s|
  s.name         = "HungryFishPod"
  s.version      = "0.9.63"
  s.summary      = "Hungry Fish is Motion Math's 3rd exciting game!"
  s.homepage     = "http://www.motionmathgames.com"
  s.license      = 'Motion Math'
  s.author       = { "Motion Math" => "info@motionmathgames.com" }
  s.source       = { :git => "https://github.com/gadauto/MM3.git", :tag => "cpodsv#{s.version}" }
  s.platform     = :ios, '6.1'
  s.source_files = 'repo/MM3/MM3', 'repo/MM3/MM3/NonGameVCs'
  s.exclude_files = 'repo/MM3/MM3/ar.lproj',
                    'repo/MM3/MM3/Resources/*.plist',
                    'repo/MM3/MM3/AppProfile.plist',
                   'repo/MM3/MM3/Default.png',
                   'repo/MM3/MM3/Default@2x.png',
                   'repo/MM3/MM3/Default-*',
                  'repo/MM3/MM3/iTunesArtwork*',
                    'repo/MM3/MM3/Icon*'
  s.resources = "repo/MM3/MM3/**/*.{caf,png,xib,fnt,ccb,otf,plist}"
  s.xcconfig   =  { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/cocos2d/external/kazmath/include" "$(PODS_ROOT)/HockeySDK/Vendor/CrashReporter.framework/Headers"',
                    'GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS' => 'PRO_VERSION' }
  s.requires_arc = true
  s.dependency 'cocos2d', '2.0'
  s.dependency 'box2d'
  s.dependency 'MMCommonPod'
end

Error

Images of arm64 calls below:
screen shot 2014-04-03 at 6 39 10 pm

screen shot 2014-04-03 at 6 38 01 pm

@ghost ghost changed the title Exclude 64-bit from ARCHS in a pod push Exclude 64-bit from ARCHS in a pod push - added template Apr 4, 2014
@ghost
Copy link
Author

ghost commented Apr 4, 2014

Update: tried setting ARCHS and VALID_ARCHS to 32-bit in xcconfig (below), but still getting the arm64 compiles at the bottom:

s.xcconfig   =  { 'ARCHS' => '${ARCHS_STANDARD_32_BIT}', 'VALID_ARCHS' => '${ARCHS_STANDARD_32_BIT}','HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/cocos2d/external/kazmath/include" "$(PODS_ROOT)/HockeySDK/Vendor/CrashReporter.framework/Headers"',
                    'GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS' => 'PRO_VERSION' }

(Note, these aren't one-after-the-other in the log, they just indicate 64-bit compiling)

/bin/mkdir -p /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods-HockeySDK.build/Objects-normal/arm64
write-file /tmp/CocoaPods/Lint/Pods/build/Pods.build/Release-iphoneos/Pods-HockeySDK.build/Objects-normal/arm64/Pods-HockeySDK.LinkFileList
ProcessPCH /var/folders/3z/ngl_ktnn1psgn0qxcp61gck40000gn/C/com.apple.DeveloperTools/5.1-5B130a/Xcode/SharedPrecompiledHeaders/Pods-HockeySDK-prefix-bfuuhtqhnbotbrgoctvzfupegorl/Pods-HockeySDK-prefix.pch.pch Pods-HockeySDK-prefix.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/Pods.build/Release-iphoneos/Pods-cocos2d.build/Objects-normal/arm64/CCMenu.o cocos2d/cocos2d/CCMenu.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

@ghost ghost changed the title Exclude 64-bit from ARCHS in a pod push - added template Exclude 64-bit from ARCHS in a pod push Apr 7, 2014
@BennettSmith
Copy link

Curious if you were able to resolve this issue. I have a similar problem with a private pod that cannot be updated to support arm64 at this time.

@ghost
Copy link
Author

ghost commented Jul 8, 2014

Hi Bennett,

Yes - this was fixed when we upgraded recently to the latest version of
CocoaPods. However, now we have issues with the cocos2d-iphone library not
compiling properly with lint.

Best,
Gabriel

http://www.motionmathgames.com
Gabriel Adauto • CTO, Motion Math • 512.672.9019

On Mon, Jul 7, 2014 at 4:55 PM, Bennett Smith notifications@github.com
wrote:

Curious if you were able to resolve this issue. I have a similar problem
with a private pod that cannot be updated to support arm64 at this time.


Reply to this email directly or view it on GitHub
#2012 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants