IT박스

Xcode의 빌드 폴더는 어디에 있습니까?

itboxs 2020. 6. 19. 19:57
반응형

Xcode의 빌드 폴더는 어디에 있습니까?


Xcode 4 이전에는 빌드가 내 프로젝트의 루트 폴더에 작성되었습니다. 더 이상 찾을 수 없습니다.

빌드 폴더는 어디에서 찾을 수 있습니까?


~/Library/Developer/Xcode/DerivedData이제 기본값입니다.
프로젝트가 빌드 디렉토리를 지정할 수 있도록 Xcode에서 prefs를 설정할 수 있습니다.


다음 위치에 있어야합니다 ~/Library/Developer/Xcode/DerivedData.

기본값을 변경 한 경우 파일-> 작업 공간 설정 으로 이동하여 빌드 위치를 확인한 다음 빌드 위치를 확인할 수 있습니다


CONFIGURATION_BUILD_DIR환경 변수를 사용하여 출력 디렉토리를 구성 할 수 있습니다 .

출처 : http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/0-Introduction/introduction.html#//apple_ref/doc/uid/TP40003931-CH1-SW1


여기에 이미지 설명을 입력하십시오

여기에 이미지 설명을 입력하십시오

Configure XCode project settings, it can solve your problem.


With a project previously created in Xcode3, I see an intermediate directory under build/ called Foo.build where Foo is my project's name, and then in that are the directories you'd expect (Debug-iphonesimulator, Release-iphoneos, etc, assuming you've done a build of that type) containing the object files and products.

Now, I suspect that if you start a new project in Xcode4, the default location is under DerivedData, but if you open an Xcode3 project in Xcode4, then Xcode4 uses the build/ directory (as described above). So, there are several correct answers. :-) Under the File menu, Project Settings, you can see you can customize how XCode works in this regard as much or as little as you like.


I wondered the same myself. I found that under File(menu) there is an item "Project Settings". It opens a dialog box with 3 choices: "Default Location", "Project-relative Location", and "Custom location" "Project-relative" puts the build products in the project folder, like before. This is not in the Preferences menu and must be set every time a project is created. Hope this helps.


In case of Debug Running

~/Library/Developer/Xcode/DerivedData/{your app}/Build/Products/Debug/{Project Name}.app/Contents/MacOS

You can find standalone executable file(Mach-O 64-bit executable x86_64)


By default Build location is in Derived Data.

Please note: a path to a product can be changed if you delete DerivedData during development process and rebuild it again.

Xcode -> Preferences... -> Locations 

의 위치를 ​​변경할 수 있습니다 Build location. 전체 작업 공간에 영향을 미칩니다

File -> Project/Workspace Settings... -> Advanced 

다음을 사용하여 대상의 위치를 ​​변경할 수 있습니다.

Project editor -> select a target -> Build Settings -> Per-configuration Build Products Path

기본값은$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

자율성을 만들려면 이치에 맞습니다 Build location

Xcode 10.2.1

참고 URL : https://stackoverflow.com/questions/5952782/where-is-xcodes-build-folder

반응형