SkeletonView icon indicating copy to clipboard operation
SkeletonView copied to clipboard

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

Open NilayDagdemir opened this issue 4 years ago • 4 comments

Description

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

Issue Type

  • [x] bug
  • [x] enhancement (feature request)
  • [x] question

Requirements

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.
  • [x] I've excluded arm64 architecture for Any iOS Simulator SDK on Build Settings.
  • [x] I'm running Xcode with Rosetta

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

NilayDagdemir avatar Jan 26 '22 08:01 NilayDagdemir

@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 .

Capotasto avatar Mar 09 '22 01:03 Capotasto

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

albyok avatar Jun 29 '22 13:06 albyok

@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

Capotasto avatar Jul 16 '22 02:07 Capotasto

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

wohral avatar Aug 08 '22 11:08 wohral

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

Thanks!

Juanpe avatar Aug 11 '22 19:08 Juanpe

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

Thanks!

Thank you. It works! :)

wohral avatar Aug 12 '22 09:08 wohral

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

Juanpe avatar Aug 12 '22 10:08 Juanpe