ninjaprox / NVActivityIndicatorView

A collection of awesome loading animations
MIT License
10.63k stars 1.17k forks source link

M1 Mac - Could not find module 'NVActivityIndicatorView' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator #327

Closed ccjiancui closed 6 months ago

ninjaprox commented 3 years ago

I don't have an M1 Mac to check this issue. Maybe someone having one could help.

lordlugo commented 3 years ago

Either run using an actual device or run Xcode in rosetta(by going to the .app file and clicking "get info" the click "run under rosetta"

fscaringi commented 2 years ago

Hello everyone, unfortunately I also encounter this problem on the simulator, on the device instead no. On the simulator, however, by enabling Rosetta, I notice some strange behaviors, for example I can no longer paste tests etc. (xCode 13.2.1 on iPhone 13). Does anyone know if this library will receive an update to avoid Rosetta? Thank you

jurvis commented 2 years ago

hey folks, if anyone is seeing this issue, don't panic! there is a way to tell Cocoapods kindly to build NVActivityIndicatorView for your host architecture. In your Podfile, add the following to your post_install script: config.build_settings['ARCHS[sdk=iphonesimulator*]'] =uname -m`

such that it looks something like this:

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['ARCHS[sdk=iphonesimulator*]'] =  `uname -m`
  end
end

This essentially tells the pods project to build your libraries for your host machine's architecture (that is output by uname -m)