CocoaPods / Rome

Makes it easy to build a list of frameworks.
MIT License
694 stars 64 forks source link

x86_64 architecture is missing from built frameworks #65

Open TomasLinhart opened 6 years ago

TomasLinhart commented 6 years ago

I tried to build with a framework with Rome, but for some reason it does not build for x86_64 architecture in Debug. In Release configuration even i386 is missing.

I tried with CocoaPods 1.4 and CocoaPods 1.5 and same result. I use Xcode 9.3 so it might be related to that.

jugutier commented 6 years ago

Do you know if the pod you added in your podfile actually supports that architecture? could you upload an example Podfile you used?

TomasLinhart commented 6 years ago

Sure, this is my Podfile:

platform :ios, '9.0'

plugin 'cocoapods-rome', { 
    :pre_compile => Proc.new { |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.1'
            end
        end

        installer.pods_project.save
    },
    dsym: false
}

target 'caesar' do
    pod 'Alamofire'
end

After that I run pod install and go to Rome and run lipo -info Alamofire.framework/Alamofire and it prints only Architectures in the fat file: Alamofire.framework/Alamofire are: armv7 arm64.

KieranLafferty commented 6 years ago

I think it has something to do with the dsym: false option. Is this expected behavior? Is there any workaround to make sure that x86_64 is included with dsym: false? I actually need to use dsym: false since cocoapods crashes for me when installing react-native pod if I don't have that setting specified

kushalpal17 commented 3 years ago

missing simulator architecture. Tested on Xcode 12

kj800x commented 3 years ago

I ran into this today too. It looks like https://github.com/CocoaPods/Rome/pull/89 will fix it.