美文网首页
mac M1芯片问题

mac M1芯片问题

作者: 修罗地狱场 | 来源:发表于2022-06-30 16:55 被阅读0次

Could not find module 'X' for target 'x86_64-apple-ios-simulator' pod不能跑问题

post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
        end
    end
end

M1芯片不能跑iwatch问题

权限问题:
在终端运行 sudo DevToolsSecurity -enable
xcode设置:
Edit Scheme -> Run -> Debug excitable
取消选中Debug excitable ,副作用是无法断点调试了

二、安装brew的问题

brew update  

报错内容

Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Already up-to-date.

解决问题

rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"
brew tap homebrew/cask

rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core

rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-services" 
brew tap homebrew/services

三、M1 pro 芯片 xcode 16 pod install问题

dlopen (Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle,0x0009)(LoadError)

sudo gem uninstall ffi
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install

相关文章

网友评论

      本文标题:mac M1芯片问题

      本文链接:https://www.haomeiwen.com/subject/qwofbrtx.html