Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

Could not find module 'SkeletonView' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator on M1 Chip #486

Closed NilayDagdemir closed 1 year ago

NilayDagdemir commented 2 years ago

Description

SkeletonView fails when try to run my ui tests via fastlane command on a Mac Mini with M1 chip.

Issue Type

Requirements


Bug Report

I recieve this error when I try to run my ui tests via fastlane command on a Mac Mini with M1 chip:

could not find module 'SkeletonView' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /[DEVELOPER_PATH]/Xcode/DerivedData/[PROJECT_NAME]-aszrsdazdfzrgyelpmnfdgehbkgb/Build/Products/Debug-iphonesimulator/SkeletonView.swiftmodule

On Macbook with an intel chip, it's working without an error.

Fastlane Command

This is the lane that I'm using in order to run UI tests:

    test_simulators = ["iPhone 8","iPhone 11","iPhone 12 Pro Max"]

    desc "Run UI Tests"
    lane :run_ui_tests do
      run_tests(
        scheme: "[MY UI TEST SCHEME NAME]", # Project scheme name
        clean: true, # Clean project folder before test execution
        devices: test_simulators, # Simulator for testing
        reset_simulator: true
      )
    end

SkeletonView Environment:

I installed the SkeletonView using swift package manager.

SkeletonView version:1.25.1 Xcode version: 13.2.1 Swift version:5.5

Expected result:

Test Succeeded

Actual result:

Could not find module 'SkeletonView' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator on M1 Chip

Capotasto commented 2 years ago

@NilayDagdemir Have you solved this problem? I'd like to use latest version of brew's cocoapods instead of using Rosetta or arch -x86_64 .

albyok commented 2 years ago

Got the exactly same problem. Is there a way to fix it?

Capotasto commented 1 year ago

@albyok I was using the SkeltonView via Swift Package but it looks like there is not way to build with M1 mac. So I just change it to CocoaPods with the below code in Podfile and It works fine now.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end
wohral commented 1 year ago

Got the same problem. Any progress with solving this bug?

Juanpe commented 1 year ago

Hi mates! Now, SkeletonView supports XCFrameworks. Please, could you check if the problem is solved using XCFramework instead?

Thanks!

wohral commented 1 year ago

Hi mates! Now, SkeletonView supports XCFrameworks. Please, could you check if the problem is solved using XCFramework instead?

Thanks!

Thank you. It works! :)

Juanpe commented 1 year ago

Great! So, I'm going to close this issue. Feel free to open a new one if you face another problem  😉