iOS 制作bundle

使用xcode制作bundle库,如果资源文件含有xib文件,推荐使用:

1. 添加bundle Target:

2. General -> Deployment Info中,更改支持的平台和最低版本:

3. Build Settings -> Base SDK中,设置支持的基础SDK:

4. Build Settings -> Build Active Architectrue Only, 设置为NO;

5. Build Settings -> COMBINE_HIDIP_IMAGES, 设置为NO;

6. Build Phases -> Copy Bundle Resources, 倒入需要的资源;

7. 点击target -> Edit Scheme -> Run -> Build Configuration 设置为Release;

8. 删除info.plist文件中的 Executable file键值对,便面上次AppStrore报错

9. 分别用模拟器和真机运行,即可得到对应架构下的bundle;也可以用 lipo -create xxx(模拟器生成的地址) xxx(真机生成的地址) -output xxx(要到出的地址)

 

posted @ 2022-06-27 16:18  jisa  阅读(495)  评论(0编辑  收藏  举报