workspace: "Ubiregi2-Release.xcworkspace", scheme: "Ubiregi2-Release", }.merge opt join_options(options: options, prefix: "-", separator: " ") end def build_settings(configuration: "Release") settings = { CONFIGURATION_BUILD_DIR: "build", CONFIGURATION_TEMP_DIR: "build/temp", CODE_SIGN_IDENTITY: "iPhone Distribution: Ubiregi Inc. (Y7522692LT)", } settings = join_options(options: settings, prefix: "", separator: "=") end def test(configuration: "Release") options = build_options(sdk: "iphonesimulator", configuration: configuration) options << DESTINATIONS.map { |destination| %(-destination "#{destination}") }.join(" ") sh "xcodebuild #{options} test | xcpretty -c" end def build_xcarchive(configuration: "Release") options = build_options(configuration: configuration) settings = build_settings(configuration: configuration) sh "xcodebuild #{options} #{settings} archive -archivePath #{ARCHIVE_FILE} | xcpretty -c" end def export_ipa sh "xcodebuild -exportArchive -exportFormat IPA -archivePath #{ARCHIVE_FILE} -exportPath #{IPA_FILE} | xcpretty -c" end ֤ίϚϯυΛλεΫʹ͢Δ Rake