#从Git中 Clone一份出来 Rockmbp:webs rock$ git clone git@git.coding.net:*****/*******.com.git #遇到提示Xcode privilegees问题 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. ## 经过网上查找,直接使用下面命令即可解决 Rockmbp:webs rock$ sudo xcodebuild -license Password: #你的密码 ### 提示 #You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode. #Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf' #Apple Inc. #Xcode and Apple SDKs Agreement #PLEASE SCROLL DOWN AND READ ALL OF THE FOLLOWING TERMS AND CONDITIONS CAREFULLY BEFORE USING THE APPLE SOFTWARE OR APPLE SERVICES. THIS IS A LEGAL AGREEMENT BETWEEN YOU AND APPLE. IF YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS, CLICK THE “AGREE” BUTTON. BY CLICKING “AGREE” OR BY DOWNLOADING, USING OR COPYING ANY PART OF THIS APPLE SOFTWARE OR USING ANY PART OF THE APPLE SERVICES, YOU ARE AGREEING ON YOUR OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO THE TERMS AND CONDITIONS STATED BELOW. IF YOU DO NOT OR CANNOT AGREE TO THE TERMS OF THIS AGREEMENT, YOU CANNOT USE THIS APPLE SOFTWARE OR THE APPLE SERVICES. DO NOT DOWNLOAD OR USE THIS APPLE SOFTWARE OR APPLE SERVICES IN THAT CASE. #1. Definitions #Whenever capitalized in this Agreement: #“Agreement” means this Xcode and Apple SDKs Agreement. #“Apple” means Apple Inc., a California corporation with its principal place of business at One Infinite Loop, Cupertino, California 95014, U.S.A. ## 提示输入 By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] ## 输入同意 Rockmbp:webs rock$ agree You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf Rockmbp:webs rock$