`
GodJohnny
  • 浏览: 92254 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

XCode生成真机、模拟器动态库的脚本

阅读更多
参考自:http://www.jianshu.com/p/1cb4c4fe5481

# Sets the target folders and the final framework product.
# 如果工程名称和Framework的Target名称不一样的话,要自定义FMKNAME
# 例如: FMK_NAME = "MyFramework"
FMK_NAME=${PROJECT_NAME}
# Install dir will be the final output to the framework.
# The following line create it in the root folder of the current project.
INSTALL_DIR=${SRCROOT}/Products/${FMK_NAME}.framework

# Working dir will be deleted after the framework creation.
WRK_DIR=build
DEVICE_DIR=${WRK_DIR}/Release-iphoneos/${FMK_NAME}.framework
SIMULATOR_DIR=${WRK_DIR}/Release-iphonesimulator/${FMK_NAME}.framework

# -configuration ${CONFIGURATION}
# Clean and Building both architectures.
xcodebuild -configuration "Release" -target "${FMK_NAME}" -sdk iphoneos clean build
xcodebuild -configuration "Release" -target "${FMK_NAME}" -sdk iphonesimulator clean build

# Cleaning the oldest.
if [ -d "${INSTALL_DIR}" ]
then
    rm -rf "${INSTALL_DIR}"
fi
mkdir -p "${INSTALL_DIR}"
cp -R "${DEVICE_DIR}/" "${INSTALL_DIR}/"

# Uses the Lipo Tool to merge both binary files (i386 + armv6/armv7) into one Universal final product.
lipo -create "${DEVICE_DIR}/${FMK_NAME}" "${SIMULATOR_DIR}/${FMK_NAME}" -output "${INSTALL_DIR}/${FMK_NAME}"
rm -r "${WRK_DIR}"
open "${INSTALL_DIR}"

在XCode里实际执行的时候,发现一些错误提示,可不必在意。
分享到:
评论

相关推荐

    Xcode真机模拟器各版本调试-持续更新-.pdf

    Xcode真机模拟器各版本调试(持续更新),目前版本8.0~13.2 Xcode真机模拟器各版本调试(持续更新),目前版本8.0~13.2

    xcode16.1真机调试包

    xcode 16.1真机调试包

    Xcode11.4真机调试包

    Xcode11.4真机调试包,Xcode11.4真机调试包,Xcode11.4真机调试包

    让 Xcode 支持真机调试 iOS14.2(beta)

    让 Xcode 支持真机调试 iOS14.2(beta) 打开 访达 (command + shift + G )前往文件夹 拷贝到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport目录下重启 Xcode 即可

    xcode12.3最新真机模拟器包.zip

    xcode12.3最新真机/模拟器包,

    ios13.1 xcode真机调试包

    升级 iOS 13 之后,使用 Xcode 10 真机调试会提示错误: Could not locate device support files. 这是因为 Xcode 10 默认没有自带 iOS 13 的调试包,下载调试包,然后重新打开 Xcode 就可以了。 打开Finder 按下: ...

    Xcode 15.4 真机调试

    Xcode 15.4 真机调试

    Xcode13.1真机调试包

    Xcode 12.3真机调试包,操作如下: 前往--应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹,拖到文件目录下之后重启 Xcode 即可。

    iOS16真机包 Xcode14 真机包

    下载解压放到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport即可,重启Xcode即可,无需升级系统和Xcode

    Xcode 15.4 真机调试包

    Xcode 15.4 真机调试包

    iOS Xcode 15.2真机测试包

    iOS Xcode 15.2真机测试包

    Xcode 15.6 真机包

    Finder:shift + command + G /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 将包放入该目录下验证密码,并重启Xcode, 就可以运行15.6系统的真机

    xcode 真机调试包 13.0.zip

    xcode 真机调试包 13.0.zip

    Xcode 11.4 真机调试包

    Xcode 11.4真机调试包下载,iPhone 11.4 系统 真机调试包下载

    xcode 14.6真机包

    xcode 14.1真机包:前往-- 前往文件 ---拷贝进去即可: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

    Xcode12.3真机调试包

    Xcode 12.3真机调试包,操作如下: 前往--应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹,拖到文件目录下之后重启 Xcode 即可。

    XCode iOS 16.0真机调试包

    这是16的真机调试包,文件直接解压放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

    xcode真机调试支持包ios9.2

    xcode真机调试所需,从xcode9.2解压获得,使用时解压到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport即可

    Xcode 12.0 真机包

    Xcode 12.0 真机包 无需更新Xcode,只需要添加真机包就能运行对应的IOS版本(文件存放位置:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹下 )

    Xcode 15.0真机调试包.zip

    iOS 15.0的真机调试文件,放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 目录下重启XCode即可。

Global site tag (gtag.js) - Google Analytics