惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
IT之家
IT之家
V
V2EX
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
B
Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网

博客园 - 是谁啊?

jenkins 权限控制(用户只能看指定的项目) NoSQLBooster for MongoDB延长-试用期 使用openVPN组建企业局域网,连接之后无法访问互联网的问题解决 - 是谁啊? mac os socks5转http proxy 解决git“Unable to negotiate with 218.244.143.137 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss”的问题 macos 升级后提示 python 命令需要使用命令行开发者工具,你要现在安装该工具吗 解决 Android studio 代理 Connect to 127.0.0.1:[/127.0.0.1] failed: Connection refused nginx 代理https后,应用redirect https变成http centos6无法安装nginx Postfix maillog邮件发送各阶段延时的日志记录 高德坐标系转wgs(苹果坐标系) java代码 How Do I test James Distributed Version with JMeter? springBoot项目不重新上传jar包,增量升级步骤 mac安装homebrew(国内) 企业微信会话存档消息解密(Java RSA PKCS1解密) 启动apache,将debug日志输出在console窗口 转:solr6.0配置中文分词器IK Analyzer git 忽略提交某个指定的文件(不从版本库中删除) git pull 和本地文件冲突问题解决
M1 Mac Xcode模拟器无法运行
是谁啊? · 2023-04-21 · via 博客园 - 是谁啊?

from: https://www.jianshu.com/p/87a5cca2a490

新版本的M1芯片运行模拟器报CocoaPods库(如:WechatOpenSDK报arm64错误)错误,是因为M1兼容问题,解决办法有两种如下:强烈推荐方法2

方法1:强制打开xcode对x86的支持,有缺点:因为还是采用x86,编译速度很慢。

关闭xcode--应用程序--xocde--右键简介--通用--勾选使用Rosetta打开--重启xcode即可

image.png

方法2(推荐):完全采用ARM架构,编译速度显著提升。

1、Build Settings--选择basic--在User-Defined下点击 ”+“
2、输入 ”EXLUDED_ARCHS“--debug和release选择Any iOs Simulator SDK,输入arm64
3、Build Settings下找到EXcluded Architectures 设置debug和release选择Any iOs Simulator SDK,输入arm64
4、Podfile 加入下面的代码
post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
end
5、重新pod install
6、最后点击xcode的Buildtime(如下面的截图)自动适配代码即可。注:如果没出现就再跑一遍pod install。

注意:遇到这种情况:ld: Framework not found),需要多clear下项目的缓存,关闭然后重启xcode即可。

image.png

#source 'https://github.com/CocoaPods/Specs.git'
# 指明依赖库的来源地址
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
inhibit_all_warnings!
platform :ios, '9.0'
target "XXX" do

pod 'xxx'
end

post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
end

作者:啾啾啾_YB
链接:https://www.jianshu.com/p/87a5cca2a490
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。