iOS - Carthage的使用

Carthage Github地址:https://github.com/Carthage/Carthage

1. 安装Carthage pkg包地址:https://github.com/Carthage/Carthage/releases

2. Xcode文件夹中建立 Cartfile

3.在该目录下,在终端运行 Carthage update (This will fetch dependencies into a Carthage/Checkouts folder and build each one.)

4.On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.

5.On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: bin/sh), add the following contents to the script area below the shell: /usr/local/bin/carthage copy-frameworks

6.在Input Files中添加,framework的相对路径
.

7.打包上传App store 需注意:

  This script works around an App Store submission bug triggered by universal binaries and ensures that necessary bitcode-related files and dSYMs are copied when archiving.

  With the debug information copied into the built products directory, Xcode will be able to symbolicate the stack trace whenever you stop at a breakpoint. This will also enable you to step through

  third-party code in the debugger.

  When archiving your application for submission to the App Store or TestFlight, Xcode will also copy these files into the dSYMs subdirectory of your application’s .xcarchive bundle.

8.如果在OC的工程中包含swift的东西需改变如下属性:Embedded Content Contains Swift Code = NO (build setting 中)

 

转载于:https://www.cnblogs.com/aLaWish/p/5412546.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值