美文网首页
xcode命令学习

xcode命令学习

作者: 一笔春秋 | 来源:发表于2018-04-13 14:38 被阅读11次

    1、查看包的架构

    lipo -info test.a

    2、提取arm64的包

    lipo test.a -thin arm64 -output arm64.a

    3、解压.a文件,获得.o文件列表

    ar -t arm64.a  arm64/

    4、重新打包

    ar rcs arm64.a arm64/*.o

    7、合并.a

    lipo -create arm64.a armv7.a -output test.a

    8、给Xcode命令行工具指定路径

    sudoxcode-select--switch /Applications/Xcode.app/Contents/Developer/

    9、查看安装的SDK

    xcodebuild -showsdks

    10、查看xcode环境路径

    xcode-select--print-path

    相关文章

      网友评论

          本文标题:xcode命令学习

          本文链接:https://www.haomeiwen.com/subject/kmvckftx.html