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

1
open
NilayDagdemir
NilayDagdemir
Posted 3 months ago

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

Description

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

Issue Type

  • bug
  • enhancement (feature request)
  • question

Requirements

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
  • I've excluded arm64 architecture for Any iOS Simulator SDK on Build Settings.
  • 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

Capotasto
Capotasto
Created 2 months 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 .