ipa파일이 프로비저닝 설정하는 방식이 plist파일을 쓰는 방식으로 변경되었다.

(8.3.0 버전 빌드)

(8.3.0 이전버전 빌드)



기존 


scheme = [

"dev_debug",

"prod_debug",

]


system("xcodebuild clean -project #{proj_name}/#{proj_name}.xcodeproj")

system("xcodebuild archive -project #{proj_name}/#{proj_name}.xcodeproj -scheme #{scheme[i]} -archivePath build/#{scheme[i]}.xcarchive")

system("xcodebuild -exportArchive -archivePath build/#{scheme[i]}.xcarchive -exportPath build/#{scheme[i]}.ipa -exportFormat ipa -exportProvisioningProfile #{profile}")



변경

system("xcodebuild clean -workspace #{proj_name}/#{proj_name}.xcworkspace -scheme #{scheme[i]}")

                system("xcodebuild archive -workspace #{proj_name}/#{proj_name}.xcworkspace -scheme #{scheme[i]} -archivePath build/#{scheme[i]}.xcarchive GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS DIST=1'")

                system("xcodebuild -exportArchive -archivePath build/#{scheme[i]}.xcarchive -exportPath build/ipas -exportOptionsPlist adhoc.plist")



plist 파일


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>compileBitcode</key>

    <false/>

    <key>method</key>

    <string>ad-hoc</string>

    <key>teamID</key>

    <string>팀ID(apple 개발자 사이트에서 확인)</string>

    <key>provisioningProfiles</key>

    <dict>

        <key>번들ID</key>

        <string>개발자사이트에 등록한 provisioning명</string>

    </dict>

</dict>

</plist>



+ Recent posts