My laptop is macbook air m1.
To avoid issues with M1. In podfile I wrote:
Uncomment the next line to define a global platform for your project
platform :ios, ‘17.0’
target ‘MovieDB’ do
Comment the next line if you don’t want to use dynamic frameworks
use_frameworks!
Pods for MovieDB
pod ‘SnapKit’
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings[‘VALID_ARCHS’] = ‘arm64, arm64e, x86_64’
end
end
end
Also, I excluded arm64 and set ‘no’ for user script sandboxing in Project’s and Pod file’s building settings. It works with simulator, but I have following error when I tried to run in real iphone:
“Build input file cannot be found: ‘/Users/erosh/Library/Developer/Xcode/DerivedData/MovieDB-diisezahwkyyuqaczdpkueerxzgm/Build/Products/Debug-iphoneos/SnapKit/SnapKit.framework/SnapKit’. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?”
How to fix it?
I tried to write in podfile just
Uncomment the next line to define a global platform for your project
platform :ios, ‘17.0’
target ‘MovieDB’ do
Comment the next line if you don’t want to use dynamic frameworks
use_frameworks!
Pods for MovieDB
pod ‘SnapKit’
end
But in this way, I had another error:
Command PhaseScriptExecution failed with a nonzero exit code
Yerimbet Aitzhanov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.