HomeiOS Developmentios - Cocoapod - Construct Framework for each x86 and arm64 simulators

ios – Cocoapod – Construct Framework for each x86 and arm64 simulators


I’m migrating our app to construct for arm64 (M1). We had beforehand put a line like this in our podfile to exclude arm64 architectures and solely construct x86 simulators frameworks.

With the Excluded_archs set to arm64, a ios_x86_simulator framework is constructed within the XCframework, however there’s not an arm64 one. With out that line, an ios_arm64_simulator is constructed, however there is not an x86 one. Is there a technique to get each an x86 and arm64 simulator?

post_install do |installer|

    installer.pods_project.targets.every do |goal|
        goal.build_configurations.every do |config|
            config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
        finish
    finish

finish

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments