xcodebuild 사용 설명서
xcodebuild 사용 설명서
localhost:bin han
$
xcodebuild
-
h xcodebuild: error: invalid option '
-
h' Usage: xcodebuild [
-
project <projectname
>
] [[
-
target <targetname
>
]...
|-
alltargets] [
-
configuration <configurationname
>
] [
-
arch <architecture
>
]... [
-
sdk [<sdkname
>|
<sdkpath
>
]] [<buildsetting
>=
<value
>
]... [<buildaction
>
]... xcodebuild
-
workspace <workspacename
>
-
scheme <schemeName
>
[
-
configuration <configurationname
>
] [
-
arch <architecture
>
]... [
-
sdk [<sdkname
>|
<sdkpath
>
]] [<buildsetting
>=
<value
>
]... [<buildaction
>
]... xcodebuild
-
version [
-
sdk [<sdkfullpath
>|
<sdkname
>
] [<infoitem
>
] ] xcodebuild
-
list [[
-
project <projectname
>
]
|
[
-
workspace <workspacename
>
]] xcodebuild
-
showsdks Options:
-
usage print full usage
-
verbose provide additional status output
-
project NAME build the project NAME
-
target NAME build the target NAME
-
alltargets build all targets
-
workspace NAME build the workspace NAME
-
scheme NAME build the scheme NAME
-
configuration NAME use the build configuration NAME
for
building each target
-
xcconfig PATH apply the build settings defined
in
the file at PATH as overrides
-
arch ARCH build each target
for
the architecture ARCH; this will override architectures defined
in
the project
-
sdk SDK use SDK as the name or path of the base SDK when building the project
-
parallelizeTargets build independent targets
in
parallel
-
jobs NUMBER specify the maximum number of concurrent build operations
-
showsdks display a compact list of the installed SDKs
-
list lists the targets and configurations
in
a project, or the schemes
in
a workspace
-
find BINARY display the full path to BINARY
in
the provided SDK
-
version display the version of Xcode; with
-
sdk will display info about one or all installed SDKs
xcodebuild 버전 표시
[yarshure@MacPro]%xcodebuild -version
Xcode 3.1.1
Component versions: DevToolsCore-1114.0; DevToolsSupport-1102.0
BuildVersion: 9M2517
현재 시스템 설치 SDK 표시
[yarshure@MacPro]%xcodebuild -showsdks
iPhone OS Simulator SDKs:
Simulator - iPhone OS 2.0 -sdk iphonesimulator2.0
Simulator - iPhone OS 2.1 -sdk iphonesimulator2.1
iPhone OS Device SDKs:
Device - iPhone OS 2.0 -sdk iphoneos2.0
Device - iPhone OS 2.1 -sdk iphoneos2.1
Mac OS X SDKs:
Mac OS X 10.4 -sdk macosx10.4
Mac OS X 10.5 -sdk macosx10.5
현재 디렉토리에 프로젝트 정보 표시
[yarshure@MacPro]%xcodebuild -list
Information about project "BookOO":
Targets:
BookOO (Active)
Build Configurations:
Debug (Active)
Release
If no build configuration is specified "Release"is used.
아이폰simulator2.1build 프로젝트 사용하기
[yarshure
@
MacPro]
%
xcodebuild
-
sdk iphonesimulator2.
1
===
BUILDING NATIVE TARGET BookOO OF PROJECT BookOO WITH THE
DEFAULT
CONFIGURATION (Release)
===
Checking Dependencies... ...... ...... Touch
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app cd
/
Users
/
yarshure
/
Desktop
/
BookOO
/
usr
/
bin
/
touch
-
c
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app
**
BUILD SUCCEEDED
**
clean Target [yarshure
@
MacPro]
%
xcodebuild clean
-
sdk iphonesimulator2.
1
-
configuration
=
Debug
===
CLEANING NATIVE TARGET BookOO OF PROJECT BookOO WITH THE
DEFAULT
CONFIGURATION (Release)
===
Checking Dependencies... Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app Clean.Remove clean
/
var
/
folders
/
9j
/
9jS16
-
DSHs07FniFobQ7Bk
+++
TI
/-
Caches
-/
com.apple.Xcode.
501
/
SharedPrecompiledHeaders
/
BookOO_Prefix
-
eizrpbwsixzcdogzigrqutwuvbzo
/
BookOO_Prefix.pch.gch
/
bin
/
rm
-
rf
/
var
/
folders
/
9j
/
9jS16
-
DSHs07FniFobQ7Bk
+++
TI
/-
Caches
-/
com.apple.Xcode.
501
/
SharedPrecompiledHeaders
/
BookOO_Prefix
-
eizrpbwsixzcdogzigrqutwuvbzo
/
BookOO_Prefix.pch.gch Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app.dSYM
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app.dSYM Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
BookOO.build
/
Release
-
iphonesimulator
/
BookOO.build
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
BookOO.build
/
Release
-
iphonesimulator
/
BookOO.build
**
CLEAN SUCCEEDED
**
From SSH Connection Build Xcode iPhone Project
1 ssh client login Develope Machine 사용
2 $cd iPhone App directory
3 $xcodebuild
일반적으로 CodeSign은 다음과 같은 오류를 안고 있습니다.
CodeSign
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app cd
/
Users
/
yarshure
/
proj
/
BookOO090215
/
usr
/
bin
/
codesign
-f
-
s
"
iPhone Developer: xiangbo kong
"
--
resource
-
rules
=/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
ResourceRules.plist
--
entitlements
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
BookOO.build
/
Release
-
iphoneos
/
BookOO.build
/
BookOO.xcent
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app: User interaction is not allowed.
**
BUILD FAILED
**
4 해결 방법
보안 명령행 도구 사용
$security unlock-keychain
5 재실행
$xcodebuild
CodeSign 출력
CodeSign
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app cd
/
Users
/
yarshure
/
proj
/
BookOO090215
/
usr
/
bin
/
codesign
-f
-
s
"
iPhone Developer: xiangbo kong
"
--
resource
-
rules
=/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
ResourceRules.plist
--
entitlements
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
BookOO.build
/
Release
-
iphoneos
/
BookOO.build
/
BookOO.xcent
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
**
BUILD SUCCEEDED
**
6 ** BUILD SUCCEEDED ** 종료
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSON
JSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다.
그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다.
저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.
localhost:bin han
$
xcodebuild
-
h xcodebuild: error: invalid option '
-
h' Usage: xcodebuild [
-
project <projectname
>
] [[
-
target <targetname
>
]...
|-
alltargets] [
-
configuration <configurationname
>
] [
-
arch <architecture
>
]... [
-
sdk [<sdkname
>|
<sdkpath
>
]] [<buildsetting
>=
<value
>
]... [<buildaction
>
]... xcodebuild
-
workspace <workspacename
>
-
scheme <schemeName
>
[
-
configuration <configurationname
>
] [
-
arch <architecture
>
]... [
-
sdk [<sdkname
>|
<sdkpath
>
]] [<buildsetting
>=
<value
>
]... [<buildaction
>
]... xcodebuild
-
version [
-
sdk [<sdkfullpath
>|
<sdkname
>
] [<infoitem
>
] ] xcodebuild
-
list [[
-
project <projectname
>
]
|
[
-
workspace <workspacename
>
]] xcodebuild
-
showsdks Options:
-
usage print full usage
-
verbose provide additional status output
-
project NAME build the project NAME
-
target NAME build the target NAME
-
alltargets build all targets
-
workspace NAME build the workspace NAME
-
scheme NAME build the scheme NAME
-
configuration NAME use the build configuration NAME
for
building each target
-
xcconfig PATH apply the build settings defined
in
the file at PATH as overrides
-
arch ARCH build each target
for
the architecture ARCH; this will override architectures defined
in
the project
-
sdk SDK use SDK as the name or path of the base SDK when building the project
-
parallelizeTargets build independent targets
in
parallel
-
jobs NUMBER specify the maximum number of concurrent build operations
-
showsdks display a compact list of the installed SDKs
-
list lists the targets and configurations
in
a project, or the schemes
in
a workspace
-
find BINARY display the full path to BINARY
in
the provided SDK
-
version display the version of Xcode; with
-
sdk will display info about one or all installed SDKs
[yarshure
@
MacPro]
%
xcodebuild
-
sdk iphonesimulator2.
1
===
BUILDING NATIVE TARGET BookOO OF PROJECT BookOO WITH THE
DEFAULT
CONFIGURATION (Release)
===
Checking Dependencies... ...... ...... Touch
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app cd
/
Users
/
yarshure
/
Desktop
/
BookOO
/
usr
/
bin
/
touch
-
c
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app
**
BUILD SUCCEEDED
**
clean Target [yarshure
@
MacPro]
%
xcodebuild clean
-
sdk iphonesimulator2.
1
-
configuration
=
Debug
===
CLEANING NATIVE TARGET BookOO OF PROJECT BookOO WITH THE
DEFAULT
CONFIGURATION (Release)
===
Checking Dependencies... Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app Clean.Remove clean
/
var
/
folders
/
9j
/
9jS16
-
DSHs07FniFobQ7Bk
+++
TI
/-
Caches
-/
com.apple.Xcode.
501
/
SharedPrecompiledHeaders
/
BookOO_Prefix
-
eizrpbwsixzcdogzigrqutwuvbzo
/
BookOO_Prefix.pch.gch
/
bin
/
rm
-
rf
/
var
/
folders
/
9j
/
9jS16
-
DSHs07FniFobQ7Bk
+++
TI
/-
Caches
-/
com.apple.Xcode.
501
/
SharedPrecompiledHeaders
/
BookOO_Prefix
-
eizrpbwsixzcdogzigrqutwuvbzo
/
BookOO_Prefix.pch.gch Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app.dSYM
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
Release
-
iphonesimulator
/
BookOO.app.dSYM Clean.Remove clean
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
BookOO.build
/
Release
-
iphonesimulator
/
BookOO.build
/
bin
/
rm
-
rf
/
Users
/
yarshure
/
Desktop
/
BookOO
/
build
/
BookOO.build
/
Release
-
iphonesimulator
/
BookOO.build
**
CLEAN SUCCEEDED
**
CodeSign
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app cd
/
Users
/
yarshure
/
proj
/
BookOO090215
/
usr
/
bin
/
codesign
-f
-
s
"
iPhone Developer: xiangbo kong
"
--
resource
-
rules
=/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
ResourceRules.plist
--
entitlements
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
BookOO.build
/
Release
-
iphoneos
/
BookOO.build
/
BookOO.xcent
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app: User interaction is not allowed.
**
BUILD FAILED
**
CodeSign
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app cd
/
Users
/
yarshure
/
proj
/
BookOO090215
/
usr
/
bin
/
codesign
-f
-
s
"
iPhone Developer: xiangbo kong
"
--
resource
-
rules
=/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
/
ResourceRules.plist
--
entitlements
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
BookOO.build
/
Release
-
iphoneos
/
BookOO.build
/
BookOO.xcent
/
Users
/
yarshure
/
proj
/
BookOO090215
/
build
/
Release
-
iphoneos
/
BookOO.app
**
BUILD SUCCEEDED
**
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.