gpt4 book ai didi

ios - 存档已提交 :Ld */Objects-normal/arm64/test normal arm64

转载 作者:行者123 更新时间:2023-11-29 05:39:11 29 4
gpt4 key购买 nike

第一步:

xcodebuild -project Pods/Pods.xcodeproj build

第二个:

xcodebuild archive -project 'test.xcodeproj' -configuration 'Debug' -scheme 'test' -archivePath './app.xcarchive' LIBRARY_SEARCH_PATHS="./build/*"

我收到消息:

** ARCHIVE FAILED **

The following build commands failed:
Ld /Users/Jerry/Library/Developer/Xcode/DerivedData/test-gatfkskyhzymghdnanjebfcrqchs/Build/Intermediates.noindex/ArchiveIntermediates/test/IntermediateBuildFilesPath/test.build/Debug-iphoneos/test.build/Objects-normal/arm64/test normal arm64
(1 failure)

最佳答案

现在,我遇到了这个问题。我的代码:

#!/bin/bash

proName='project name'
proURL='your project path'
api_key='your api key'
configuration='Debug' #Release
#打包
arch(){
echo '开始编译Pods'
xcodebuild -project Pods/Pods.xcodeproj build
echo '开始编译project'

xcodebuild -archivePath "./build/${proName}.xcarchive" -workspace $proName.xcworkspace -sdk iphoneos -scheme $proName -configuration $configuration archive
}
#导出ipa
exportIPA(){
echo '开始导出ipa'
xcodebuild -exportArchive -archivePath "./build/${proName}.xcarchive" -exportPath './app' -exportOptionsPlist './ExportOptions.plist'
}
#上传ipa到蒲公英
upload(){
if [ -e "${proURL}/app/${proName}.ipa" ]
then
echo '开始上传ipa/apk到蒲公英'
curl -F "file=@${proURL}/app/${proName}.ipa" -F "_api_key=${api_key}" 'http://www.pgyer.com/apiv2/app/upload'
else
echo "在目录:${proURL}/app/${proName}.ipa 不存在"
fi
}
startarch(){
arch
if (($? == 0))
then
echo 'archive success🍺'
startExportIPA
else
echo 'archive faild❌'
fi
}
startExportIPA(){
exportIPA
if(($? == 0))
then
echo 'exportIPA success🍺🍺'
startUPLoadIPA
else
echo 'exportIPA faild ❌'
fi
}
startUPLoadIPA(){
upload
if(($? == 0))
then
echo 'uploadIPA success'
else
echo 'uploadIPA faild ❌'
fi
}


if (($# == 0))
#then
# startarch
#elif (($# == 1))
then
while :
do
echo '🍺🍺🍺***********************🍺🍺🍺'
echo "输入 1 到 4 之间的数字:"
echo "输入 1:从编译打包开始至结束"
echo "输入 2:从导出IPA开始至结束"
echo "输入 3:从上传ipa开始至结束"
echo "输入 4:退出"
read a
case $a in
1)startarch
break;;
2)startExportIPA
break;;
3)startUPLoadIPA
break;;
4) break;;
esac
done
fi

这是我的代码,它有效,希望你也一样。

关于ios - 存档已提交 :Ld */Objects-normal/arm64/test normal arm64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56729421/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com