iOS xcode编译错误no such product type for the 'iphonesimulator' platform

问题:

如果你没有安装iOS Universal Framework在Xcode,并企图编译一个universal框架项目(对于“真”框架,不是“假”框架),这会导致下列错误:

target specifies product type 'com.apple.product-type.framework.static',but there's no such product type for the 'iphonesimulator' platform


解决方法:

在xcode中安装iOS Universal Framework

1. 从 https://github.com/kstenerud/iOS-Universal-Framework 下载 iOS-Universal-Framework-master.zip

2. 解压下载的zip包后,打开终端工具,进入iOS-Universal-Framework-master下的Real Framework目录

cd iOS-Universal-Framework-master

cd Real\ Framework/

sh install.sh

出现提示

The templates will be installed in /Users/shouwei/Library/Developer/Xcode/Templates/Framework & Library:

直接回车

continue [y/N]: y

此处确认开始安装输入y

[ Installing xcspec file ]

安装完成,重启xcode后再进行编译,就可以正常完成编译了




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值