精华内容
下载资源
问答
  •  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 看了下Git命令能否正常使用 命令行git –help ...
  • xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH-附件资源
  • 本文主要是讲诉了如何解决在mac下使用git;xcode4.6的环境时,出现了错误(mac git xcrun error active developer path)的解决办法,希望对大家有所帮助
  • xcrun

    2018-02-20 00:51:00
    When xcrun is invoked with the name xcrun, the options --log and --verbose are useful debugging aids. The option --no-cache can be used to bypass cache lookup, but often at a significant cost ...

     

    This manual page is part of Xcode Tools version 5.0

    To obtain these tools:

    If you are running a version of Xcode Tools other than 5.0, view the documentation locally:

    • In Xcode

    • In Terminal, using the man(1) command

    Reading manual pages

    Manual pages are intended as a quick reference for people who already understand a technology.

    • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

    • For more information about this technology, look for other documentation in the Apple Developer Library.

    • For general information about writing shell scripts, read Shell Scripting Primer.


    
    XCRUN(1)                                 BSD General Commands Manual                                XCRUN(1)
    
    
    
    NAME
           xcrun - Run or locate development tools and properties.
    
    SYNOPSIS
           xcrun [--sdk <SDK name>] --find <tool name>
    
           xcrun [--sdk <SDK name>] <tool name> ... tool arguments ...
    
           <tool name> ... tool arguments ...
    
    DESCRIPTION
           xcrun  provides  a means to locate or invoke developer tools from the command-line, without requiring
           users to modify Makefiles or otherwise take inconvenient measures  to  support  multiple  Xcode  tool
           chains.
    
           The  tool xcode-select(1) is used to set a system default for the active developer directory, and may
           be overridden by the DEVELOPER_DIR environment variable (see ENVIRONMENT).
    
           The SDK which will be searched defaults to the boot system OS SDK, and can be specified by  the  SDK-ROOT SDKROOT
           ROOT  environment  variable  or the --sdk option (which takes precedences over SDKROOT). When used to
           invoke another tool (as opposed to simply finding it), xcrun will provide the absolute  path  to  the
           selected SDK in the SDKROOT environment variable. See ENVIRONMENT for more information.
    
       Usage
           xcrun  supports several different usages, to both look up the paths to tools as well as execute them.
    
           When used with the --find argument, as in xcrun [--sdk <SDK name>] --find <tool name>,  the  absolute
           path to the tool (in the provided SDK, if given) will be printed.
    
           When  used without --find, the name of a tool is required and the tool will be executed with the pro-vided provided
           vided arguments.
    
           When used as the target of a symbolic link, it derives the tool name to use  from  the  name  it  was
           invoked under, and then executes that tool.
    
    OPTIONS
           -v, --verbose
                  Add verbose information on how the tool lookup is performed.
    
           -n, --no-cache
                  Don't  consult  the  cache  when  looking  up  values. In effect, causes the cache entry to be
                  refreshed.
    
           -k, --kill-cache
                  Removes the cache. Causes all values to be re-cached.
    
           --sdk  Specifies which SDK to search for tools. If no --sdk argument is provided, then the  SDK  used
                  will be taken from the SDKROOT environment variable, if present.
    
           --toolchain
                  Specifies  which  toolchain to use to perform the lookup. If no option:--toolchain argument is
                  provided, then the toolchain to use will be taken from the TOOLCHAINS environment variable, if
                  present.
    
           -l, --log
                  Print the full command line that is invoked.
    
           -f, --find
                  Enable  "find" mode, in which the resolved tool path is printed instead of the tool being exe-cuted. executed.
                  cuted.
    
           -r, --run
                  Enable "run" mode, in which the resolved tool path is executed with  any  provided  additional
                  arguments. This is the default mode.
    
           --show-sdk-path
                  Print the path to the selected SDK.
    
           --show-sdk-version
                  Print the version number of the selected SDK.
    
           --show-sdk-platform-path
                  Print the path to the platform for the selected SDK.
    
           --show-sdk-platform-version
                  Print the version number of the platform for the selected SDK.
    
    ENVIRONMENT
           DEVELOPER_DIR
              Overrides  the  active  developer  directory.  When  DEVELOPER_DIR  is set, its value will be used
              instead of the system-wide active developer directory.
    
           SDKROOT
              Specifies the default SDK to be used when looking up tools (some tools may have SDK specific  ver-sions). versions).
              sions).
    
              This  environment  variable  is also set by xcrun to be the absolute path to the user provided SDK
              (either via SDKROOT or the --sdk option), when it is used to invoke a normal developer tool (build
              tools like xcodebuild or make are exempt from this behavior).
    
              For example, if xcrun is used to invoke clang via:
                  xcrun --sdk macosx clang test.c
    
              then  xcrun will provide the full path to the macosx SDK in the environment variable SDKROOT. That
              in turn will be used by clang(1) to automatically select that SDK when compiling the test.c  file.
    
           TOOLCHAINS
              Specifies  the  default  toolchain to be used when looking up tools (for tools which are toolchain
              specific).
    
           xcrun_log
              Same as specifying --log.
    
           xcrun_nocache
              Same as specifying --no-cache.
    
           xcrun_verbose
              Same as specifying --verbose.
    
    EXAMPLES
           xcrun --find clang
              Finds the path to the clang binary in the default SDK.
    
           xcrun --sdk iphoneos --find texturetool
              Finds the path to the texturetool binary in the iOS SDK.
    
           xcrun --sdk macosx --show-sdk-path
              Prints the path to the current Mac OS X SDK.
    
           xcrun git status
              Locates the git command and then executes it with a single argument ("status").
    
    DIAGNOSTICS
           When xcrun is invoked with the name xcrun, the options --log and --verbose are useful debugging aids.
           The  option --no-cache can be used to bypass cache lookup, but often at a significant cost in perfor-mance. performance.
           mance.
    
           When xcrun has taken the place of another tool, the arguments are those of the tool replaced, and the
           various xcrun options can't be used. In this case, use the specific environment variables instead.
    
    SEE ALSO
           xcodebuild(1), xcode-select(1)
    

     

    https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/xcrun.1.html

    转载于:https://www.cnblogs.com/yuwei0911/p/8454705.html

    展开全文
  • 摘抄自 2016-06-25-ios-xcodebuild xcodebuild ...xcodebuild 用于编译xcode中的projects和workspaces ... [[-target targetname] ...... xcrun provides a means to locate or invoke developer tools...

    摘抄自2016-06-25-ios-xcodebuild

    xcodebuild

    简介

    xcodebuild 用于编译xcode中的projects和workspaces

    文档

    1 在终端中输入

    $ man xcodebuild

    2 下面是xcodebuild的部分文档

    NAME
     xcodebuild -- build Xcode projects and workspaces
    
    SYNOPSIS
     xcodebuild [-project name.xcodeproj]
                [[-target targetname] ... | -alltargets]
                [-configuration configurationname]
                [-sdk [sdkfullpath | sdkname]] [action ...]
                [buildsetting=value ...] [-userdefault=value ...]
    
     xcodebuild [-project name.xcodeproj] -scheme schemename
                [[-destination destinationspecifier] ...]
                [-destination-timeout value]
                [-configuration configurationname]
                [-sdk [sdkfullpath | sdkname]] [action ...]
                [buildsetting=value ...] [-userdefault=value ...]
    
     xcodebuild -workspace name.xcworkspace -scheme schemename
                [[-destination destinationspecifier] ...]
                [-destination-timeout value]
                [-sdk [sdkfullpath | sdkname]] [action ...]
                [buildsetting=value ...] [-userdefault=value ...]
    
     xcodebuild -version [-sdk [sdkfullpath | sdkname]] [infoitem]
    
     xcodebuild -showsdks
    
     xcodebuild -showBuildSettings
                [-project name.xcodeproj | [-workspace name.xcworkspace -scheme schemename]]
    
     xcodebuild -list [-project name.xcodeproj | -workspace name.xcworkspace]
    
     xcodebuild -exportArchive -archivePath xcarchivepath -exportPath
                destinationpath -exportOptionsPlist path
    
     xcodebuild -exportLocalizations -project name.xcodeproj -localizationPath
                path [[-exportLanguage language] ...]
     xcodebuild -importLocalizations -project name.xcodeproj -localizationPath
                path
         OS X                            March 19, 2015                            OS X
    

    xcodebuild命令

    xcodebuild -version [-sdk [sdkfullpath | sdkname]] [infoitem]

    1 显示版本信息

    $ xcodebuild -version

    Xcode 7.3
    Build version 7D175
    

    2 显示某个sdk的版本信息

    $ xcodebuild -version -sdk iphoneos9.3

    iPhoneOS9.3.sdk - iOS 9.3 (iphoneos9.3)
    SDKVersion: 9.3
    Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/    SDKs/iPhoneOS9.3.sdk
    PlatformVersion: 9.3
    PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    ProductBuildVersion: 13E230
    ProductCopyright: 1983-2016 Apple Inc.
    ProductName: iPhone OS
    ProductVersion: 9.3
    

    3 注意:

    1 -sdk 对应的值可以通过下面的xcodebuild -showsdks来得到

    2 infoitem显示信息项,没有什么有意义的作用可以不管

    xcodebuild -showsdks

    1 显示sdk

    $ xcodebuild -showsdks

    OS X SDKs:
       OS X 10.11                    	-sdk macosx10.11
    
    iOS SDKs:
      iOS 9.3                       	-sdk iphoneos9.3
    
    iOS Simulator SDKs:
      Simulator - iOS 9.3           	-sdk iphonesimulator9.3
    
    tvOS SDKs:
      tvOS 9.2                      	-sdk appletvos9.2
    
    tvOS Simulator SDKs:
      Simulator - tvOS 9.2          	-sdk appletvsimulator9.2
    
    watchOS SDKs:
      watchOS 2.2                   	-sdk watchos2.2
    
    watchOS Simulator SDKs:
      Simulator - watchOS 2.2       	-sdk watchsimulator2.2
    

    xcodebuild -showBuildSettings

    1 cd进Test工程文件夹,显示buildSettings

    $ xcodebuild -showBuildSettings

    Build settings for action build and target Test:
        ACTION = build
        AD_HOC_CODE_SIGNING_ALLOWED = NO
        ALTERNATE_GROUP = staff
        ALTERNATE_MODE = u+w,go-w,a+rX
        ALTERNATE_OWNER = chiyou
        ALWAYS_SEARCH_USER_PATHS = NO
        ALWAYS_USE_SEPARATE_HEADERMAPS = NO
        APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
        APPLE_INTERNAL_DIR = /AppleInternal
        APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
        APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library
        APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools
        APPLICATION_EXTENSION_API_ONLY = NO
        APPLY_RULES_IN_COPY_FILES = NO
        ARCHS = armv7 arm64
        ARCHS_STANDARD = armv7 arm64
        ARCHS_STANDARD_32_64_BIT = armv7 arm64
        ARCHS_STANDARD_32_BIT = armv7
        ....
    

    xcodebuild -list [-project name.xcodeproj | -workspace name.xcworkspace]

    显示关于Test.xcodeproj的信息

    $ xcodebuild -list

    Information about project "Test":
      Targets:
        Test
        TestTests
        TestUITests
    
    Build Configurations:
        Debug
        Release
    
    If no build configuration is specified and -scheme is not passed then "Release" is used.
    
    Schemes:
        Test
    

    注意:

    1 在这里我们可以得到project的targets以及schemes以及Build Configurations

    2 xcodebuild -listxcodebuild -list -project Test.xcodeproj相同,因为它默认取Test.xcodeproj

    3 如果有pods,xcodebuild -list -workspace Test.xcworkspace

    xcodebuild [-project name.xcodeproj][[-target targetname] … | -alltargets] [-configuration configurationname][-sdk [sdkfullpath | sdkname]] [action …][buildsetting=value …] [-userdefault=value …]

    cd进Test工程文件夹

    $ xcodebuild -sdk iphoneos9.3

    下面是编译的大致流程:

     Check dependencies 
     —CompileC 编译各个.m文件
     —Ld build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7/Test normal armv7 
     —Ld build/Test.build/Release-iphoneos/Test.build/Objects-normal/arm64/Test normal arm64 
     —CreateUniversalBinary build/Release-iphoneos/Test.app/Test normal armv7\ arm64 
     —CompileStoryboard Test/Base.lproj/LaunchScreen.storyboard 
     —CompileStoryboard Test/Base.lproj/Main.storyboard
     —CompileAssetCatalog build/Release-iphoneos/Test.app Test/Assets.xcassets
     —ProcessInfoPlistFile build/Release-iphoneos/Test.app/Info.plist Test/Info.plist 
     —GenerateDSYMFile build/Release-iphoneos/Test.app.dSYM build/Release-iphoneos/Test.app/Test
     —LinkStoryboards 
     —ProcessProductPackaging /Users/chiyou/Library/MobileDevice/Provisioning\ Profiles/2504ed49-d99e-4f7a-bafb-bd1eb4bcea9e.mobileprovision build/Release-iphoneos/Test.app/embedded.mobileprovision 
     —Touch build/Release-iphoneos/Test.app 
     —ProcessProductPackaging /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/Entitlements.plist build/Test.build/Release-iphoneos/Test.build/Test.app.xcent 
     —CodeSign build/Release-iphoneos/Test.app 
       Signing Identity:     "iPhone Developer: zhida wu (8MR2HY4EQA)"
       Provisioning Profile: "iOS Team Provisioning Profile: *"
                      (2504ed49-d99e-4f7a-bafb-bd1eb4bcea9e) —Validate build/Release-iphoneos/Test.app  
     -Validate /Users/chiyou/Library/Developer/Xcode/DerivedData/Test-dyjdzvtgqgxtqechyirrgsrcuxma/Build/Products/Debug-iphoneos/Test.app              
     ** BUILD SUCCEEDED **
    

    当出现** BUILD SUCCEEDED **时,代表编译成功,

    1 这种情况下,默认的-project的值为Test. xcodeproj,默认的-target的值为Test,默认的-configuration对应的值为Release,默认的actionbuild

    2 在Test文件夹下,生成build文件夹,在build中存在Release-iphoneosTest.build两个文件夹,Test.app存在于Release-iphoneos中。

    3 签名信息,Signing Identity: “iPhone Developer: zhida wu (8MR2HY4EQA)”
    Provisioning Profile: “iOS Team Provisioning Profile: *”
    (2504ed49-d99e-4f7a-bafb-bd1eb4bcea9e) —Validate build/Release-iphoneos/Test.app ,自动选择的。

    4 可以通过CODE_SIGN_IDENTITY以及PROVISIONING_PROFILE改变签名信息

    $ xcodebuild -project Test.xcodeproj -configuration Release -sdk iphoneos9.3 build

    1 这种情况与xcodebuild -sdk iphoneos9.3等价

    2 可以将iphoneos9.3换成iphonesimulator9.3build下会生成Release-iphonesimulator文件夹,可以将Release换成Debugbuild下会生成对应的debug_xxx文件夹

    3 作用是编译生成xx.app文件

    $ xcodebuild -project Test.xcodeproj -target Test -configuration Release -sdk iphoneos9.3 CODE_SIGN_IDENTITY="iPhone Distribution: Hangzhou Riguan Apparel Co.,ltd (V9LX9F46VG)" PROVISIONING_PROFILE="a97416b6-a868-44c7-8bd5-5847954305bb"
    

    1 当我们使用xcode来进行打包的时候,CODE_SIGN_IDENTITY以及PROVISIONING_PROFILE的值就是buildsetting中选择的证书和profile文件对应的值。

    2 注意,要将工程的bundle id与描述性文件中的bundle id保持一致

    3 CODE_SIGN_IDENTITY可以通过钥匙串来查看,证书完整的名字就是对应的值

    4 PROVISIONING_PROFILE通过xcode,同时按住command,,然后选择Accounts->证书对应的账号->View Details ->选择对应的profile->show in finder ->文件名就是PROVISIONING_PROFILE对应的值。

    5 此时的签名信息为

    Signing Identity: “iPhone Distribution: Hangzhou Riguan Apparel Co.,ltd (V9LX9F46VG)”

    Provisioning Profile: “davebella_adhoc_all”(a97416b6-a868-44c7-8bd5-5847954305bb)

    xcodebuild -workspace name.xcworkspace -scheme schemename [[-destination destinationspecifier] …] [-destination-timeout value] [-sdk [sdkfullpath | sdkname]] [action …][buildsetting=value …] [-userdefault=value …]

    $ xcodebuild -workspace Test.xcworkspace -scheme Test -sdk iphoneos9.3 build

    1 -scheme的值可以通过xcodebuild -list -workspace Test.xcworkspace得到。

    $ xcodebuild -workspace Test.xcworkspace -scheme Test -sdk iphoneos9.3 archive

    1 生成一个.xcarchive文件,可以通过选择window->organizer->Test 可以看到我们的.xcarchive文件,右键show in finder 即可找到我们的文件.

    xcodebuild -exportArchive -archivePath MyMobileApp.xcarchive -exportPath ExportDestination -exportOptionsPlist ‘export.plist’

     $ xcodebuild -exportArchive -archivePath /Users/chiyou/Library/Developer/Xcode/Archives/2016-05-02/Test.xcarchive -exportPath ~/desktop/ipa -exportOptionsPlist 'export.plist'
    

    1 作用是将生成的.xcarchive文件,打包成ipa文件.

    2 -archivePath的值即是.xcarchive文件的路径,可以打开xcode,选择window->organizer->Test 可以看到我们的.xcarchive文件,右键show in finder 即可找到我们的文件,可以看到文件的名字是工程名+archive的时间,我们要把名字改成容易识别的名字,例如把Test 16-5-2 下午12.46.xcarchive改为Test.xcarchive,否则识别不出来.

    3 -exportPath对应的值为输出的ipa包的存放路径,本例中是在桌面上建立一个ipa文件夹。

    4 -exportOptionsPlist对应的是export.plist文件,我们要建立一个export.plist文件,文件内输入ExportDestination,对应的值为输出ipa包的路径~/desktop/ipa

    xcrun

    简介

    xcrun - Run or locate development tools and properties.
    运行或定位开发工具以及属性

    部分文档

    1 在终端中输入 $ man xcrun

    2 下面是xcrun的整个文档

     NAME
       xcrun - Run or locate development tools and properties.
    
    SYNOPSIS
       xcrun [--sdk <SDK name>] --find <tool name>
    
       xcrun [--sdk <SDK name>] <tool name> ... tool arguments ...
    
       <tool name> ... tool arguments ...
    
     DESCRIPTION
       xcrun  provides  a  means  to locate or invoke developer tools from the
       command-line, without requiring users to modify Makefiles or  otherwise
       take inconvenient measures to support multiple Xcode tool chains.
    
       The tool xcode-select(1) is used to set a system default for the active
       developer directory, and may be overridden by the  DEVELOPER_DIR  envi-
       ronment variable (see ENVIRONMENT).
       
       The  SDK  which  will be searched defaults to the most recent available
       SDK, and can be specified by the SDKROOT environment  variable  or  the
       --sdk  option  (which  takes  precedences  over  SDKROOT). When used to
       invoke another tool (as opposed to simply finding it), xcrun will  pro-
       vide  the  absolute path to the selected SDK in the SDKROOT environment
       variable. See ENVIRONMENT for more information.
       
       
       Usage
       xcrun supports several different usages, to both look up the  paths  to
       tools as well as execute them.
    
       When  used  with  the  --find  argument, as in xcrun [--sdk <SDK name>]
       --find <tool name>, the absolute path to the tool (in the provided SDK,
       if given) will be printed.
    
       When  used  without --find, the name of a tool is required and the tool
       will be executed with the provided arguments.
    
       When used as the target of a symbolic link, it derives the tool name to
       use from the name it was invoked under, and then executes that tool.
       
       
       OPTIONS
       -v, --verbose
              Add verbose information on how the tool lookup is performed.
    
       -n, --no-cache
              Don't  consult  the  cache  when  looking  up values. In effect,
              causes the cache entry to be refreshed.
    
       -k, --kill-cache
              Removes the cache. Causes all values to be re-cached.
    
       --sdk  Specifies which SDK to search for tools. If no --sdk argument is
              provided, then the SDK used will be taken from the SDKROOT envi-
              ronment variable, if present.
    
              Use xcodebuild -showsdks to list the available SDK names.
      --toolchain
              Specifies which toolchain to use to perform the  lookup.  If  no
              --toolchain argument is provided, then the toolchain to use will
              be taken from the TOOLCHAINS environment variable, if present.
    
       -l, --log
              Print the full command line that is invoked.
    
       -f, --find
              Enable "find" mode, in which the resolved tool path  is  printed
              instead of the tool being executed.
    
       -r, --run
              Enable  "run"  mode, in which the resolved tool path is executed
              with any provided additional  arguments.  This  is  the  default
              mode.
    
       --show-sdk-path
              Print the path to the selected SDK.
              
       --show-sdk-version
              Print the version number of the selected SDK.
    
       --show-sdk-build-version
              Print the build version number of the selected SDK.
    
       --show-sdk-platform-path
              Print the path to the platform for the selected SDK.
    
       --show-sdk-platform-version
              Print the version number of the platform for the selected SDK.
              
              
       ENVIRONMENT
       DEVELOPER_DIR
          Overrides the active developer directory. When DEVELOPER_DIR is set,
          its value will be used instead of the system-wide  active  developer
          directory.
    
       SDKROOT
          Specifies  the  default  SDK  to be used when looking up tools (some
          tools may have SDK specific versions).
    
          This environment variable is also set by xcrun to  be  the  absolute
          path  to  the  user  provided  SDK  (either via SDKROOT or the --sdk
          option), when it is used to invoke a normal  developer  tool  (build
          tools like xcodebuild or make are exempt from this behavior).
    
          For example, if xcrun is used to invoke clang via:
              xcrun --sdk macosx clang test.c
              
          then xcrun will provide the full path to the macosx SDK in the envi-
          ronment variable SDKROOT. That in turn will be used by  clang(1)  to
          automatically select that SDK when compiling the test.c file.
    
       TOOLCHAINS
          Specifies  the  default  toolchain  to be used when looking up tools
          (for tools which are toolchain specific).
    
       xcrun_log
          Same as specifying --log.
    
       xcrun_nocache
          Same as specifying --no-cache.
    
       xcrun_verbose
          Same as specifying --verbose.
          
          
       EXAMPLES
       xcrun --find clang
          Finds the path to the clang binary in the default SDK.
    
       xcrun --sdk iphoneos --find texturetool
          Finds the path to the texturetool binary in the iOS SDK.
    
       xcrun --sdk macosx --show-sdk-path
          Prints the path to the current Mac OS X SDK.
    
       xcrun git status
          Locates the git command and then executes it with a single  argument
          ("status").
                    
       DIAGNOSTICS
       When  xcrun  is  invoked  with  the  name  xcrun, the options --log and
       --verbose are useful debugging aids. The option --no-cache can be  used
       to bypass cache lookup, but often at a significant cost in performance.
    
       When xcrun has taken the place of another tool, the arguments are those
       of  the  tool replaced, and the various xcrun options can't be used. In
       this case, use the specific environment variables instead.
    
    SEE ALSO
       xcodebuild(1), xcode-select(1)
    

    xcrun 命令探析

    找到二进制文件clang在默认的SDK中的路径

    $ xcrun --find clang

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

    1 通过/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr /bin/,我们可以发现在bin文件夹内,有好多与clang类似的二进制文件.

    2 通过xcrun --find xxxxx,可以方便的定位出其他二进制文件的路径

    找到二进制文件texturetool在 IOS SDK中的路径

    $ xcrun --sdk iphoneos --find texturetool

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool

    1 通过 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer /usr/bin/,我们可以发现在bin文件夹内,有好多与texturetool类似的二进制文件.

    2 通过xcrun --find xxxxx,可以方便的定位出其他二进制文件的路径

    3 其中二进制文件PackageApplication是用来将.app文件打包成ipa文件的.

    打印出当前Mac OS X SDK的路径

    $ xcrun --sdk macosx --show-sdk-path

    将xxx.app文件打包成xxx.ipa并输出到指定位置(重点)

    $ xcrun -sdk iphoneos -v PackageApplication ./build/Release-iphoneos/Test.app -o ~/Desktop/ipa/Test.ipa

    1 PackageApplication指定打包的工具

    2 ./build/Release-iphoneos/Test.app指定打包的目标文件(.app)

    3 ~/Desktop/ipa/Test.ipa指定输出的路径

    定位git命令并执行

    $ xcrun git status

    参考

    展开全文
  • xcrun: error: SDK “iphoneos” cannot be located xcrun: error: SDK “iphoneos” cannot be located xcrun: error: SDK “iphoneos” cannot be located xcrun: error: unable to lookup item ‘Path’ in SDK ...

    报错信息

    简要报错信息

    xcrun: error: SDK “iphoneos” cannot be located
    xcrun: error: SDK “iphoneos” cannot be located
    xcrun: error: SDK “iphoneos” cannot be located
    xcrun: error: unable to lookup item ‘Path’ in SDK ‘iphoneos’
    checking for a BSD-compatible install… /usr/bin/install -c

    完整报错信息

    -> Installing Flipper-Glog (0.3.6)
     > Git download
     > Git download
         $ /usr/bin/git clone https://github.com/google/glog.git
         /var/folders/48/x1pjkrm51bx6003fs43qhfc00000gn/T/d20210424-48994-8hl2lz
         --template= --single-branch --depth 1 --branch v0.3.5
         Cloning into '/var/folders/48/x1pjkrm51bx6003fs43qhfc00000gn/T/d20210424-48994-8hl2lz'...
         Note: switching to 'a6a166db069520dbbd653c97c2e5b12e08a8bb26'.
    
         You are in 'detached HEAD' state. You can look around, make experimental
         changes and commit them, and you can discard any commits you make in this
         state without impacting any branches by switching back to a branch.
    
         If you want to create a new branch to retain commits you create, you may
         do so (now or later) by using -c with the switch command. Example:
    
           git switch -c <new-branch-name>
    
         Or undo this operation with:
    
           git switch -
    
         Turn off this advice by setting config variable advice.detachedHead to false
    
     > Running prepare command
       $ /bin/bash -c  set -e #!/bin/bash # Copyright (c) Facebook, Inc. and its
       affiliates. # # This source code is licensed under the MIT license found in
       the # LICENSE file in the root directory of this source tree.  set -e
       PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}" CURRENT_ARCH="${CURRENT_ARCH}"  if
       [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then     #
       Xcode 10 beta sets CURRENT_ARCH to "undefined_arch", this leads to incorrect
       linker arg.     # it's better to rely on platform name as fallback because
       architecture differs between simulator and device      if [[ "$PLATFORM_NAME"
       == *"simulator"* ]]; then         CURRENT_ARCH="x86_64"     else
       CURRENT_ARCH="armv7"     fi fi  export CC="$(xcrun -find -sdk $PLATFORM_NAME
       cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME
       --show-sdk-path)" export CXX="$CC"  # Remove automake symlink if it exists if
       [ -h "test-driver" ]; then     rm test-driver fi  ./configure --host
       arm-apple-darwin  # Fix build for tvOS cat << EOF >> src/config.h /* Add in
       so we have Apple Target Conditionals */ #ifdef __APPLE__ #include
       <TargetConditionals.h> #include <Availability.h> #endif /* Special
       configuration for AppleTVOS */ #if TARGET_OS_TV #undef HAVE_SYSCALL_H #undef
       HAVE_SYS_SYSCALL_H #undef OS_MACOSX #endif /* Special configuration for
       ucontext */ #undef HAVE_UCONTEXT_H #undef PC_FROM_UCONTEXT #if
       defined(__x86_64__) #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip #elif
       defined(__i386__) #define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip #endif EOF
       # Prepare exported header include EXPORTED_INCLUDE_DIR="exported/glog" mkdir
       -p exported/glog cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/" cp -f
       src/glog/logging.h "$EXPORTED_INCLUDE_DIR/" cp -f src/glog/raw_logging.h
       "$EXPORTED_INCLUDE_DIR/" cp -f src/glog/stl_logging.h
       "$EXPORTED_INCLUDE_DIR/" cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"
       xcrun: error: SDK "iphoneos" cannot be located
       xcrun: error: SDK "iphoneos" cannot be located
       xcrun: error: SDK "iphoneos" cannot be located
       xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
       checking for a BSD-compatible install... /usr/bin/install -c
       checking whether build environment is sane... yes
       /Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing: Unknown `--is-lightweight' option
       Try `/Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing --help' for more information
       configure: WARNING: 'missing' script is too old or missing
       checking for arm-apple-darwin-strip... no
       checking for strip... strip
       checking for a thread-safe mkdir -p... ./install-sh -c -d
       checking for gawk... no
       checking for mawk... no
       checking for nawk... no
       checking for awk... awk
       checking whether make sets $(MAKE)... yes
       checking whether make supports nested variables... yes
       checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot
       checking whether the C compiler works... no
       configure: error: in `/Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6':
       configure: error: C compiler cannot create executables
       See `config.log' for more details
    [!] /bin/bash -c
    set -e
    #!/bin/bash
    # Copyright (c) Facebook, Inc. and its affiliates.
    #
    # This source code is licensed under the MIT license found in the
    # LICENSE file in the root directory of this source tree.
    
    set -e
    
    PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"
    CURRENT_ARCH="${CURRENT_ARCH}"
    
    if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
        # Xcode 10 beta sets CURRENT_ARCH to "undefined_arch", this leads to incorrect linker arg.
        # it's better to rely on platform name as fallback because architecture differs between simulator and device
    
        if [[ "$PLATFORM_NAME" == *"simulator"* ]]; then
            CURRENT_ARCH="x86_64"
        else
            CURRENT_ARCH="armv7"
        fi
    fi
    
    export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)"
    export CXX="$CC"
    
    # Remove automake symlink if it exists
    if [ -h "test-driver" ]; then
        rm test-driver
    fi
    
    ./configure --host arm-apple-darwin
    
    # Fix build for tvOS
    cat << EOF >> src/config.h
    /* Add in so we have Apple Target Conditionals */
    #ifdef __APPLE__
    #include <TargetConditionals.h>
    #include <Availability.h>
    #endif
    /* Special configuration for AppleTVOS */
    #if TARGET_OS_TV
    #undef HAVE_SYSCALL_H
    #undef HAVE_SYS_SYSCALL_H
    #undef OS_MACOSX
    #endif
    /* Special configuration for ucontext */
    #undef HAVE_UCONTEXT_H
    #undef PC_FROM_UCONTEXT
    #if defined(__x86_64__)
    #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
    #elif defined(__i386__)
    #define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
    #endif
    EOF
    
    # Prepare exported header include
    EXPORTED_INCLUDE_DIR="exported/glog"
    mkdir -p exported/glog
    cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/"
    cp -f src/glog/logging.h "$EXPORTED_INCLUDE_DIR/"
    cp -f src/glog/raw_logging.h "$EXPORTED_INCLUDE_DIR/"
    cp -f src/glog/stl_logging.h "$EXPORTED_INCLUDE_DIR/"
    cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"
    
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for arm-apple-darwin-strip... no
    checking for strip... strip
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot
    checking whether the C compiler works... no
    xcrun: error: SDK "iphoneos" cannot be located
    xcrun: error: SDK "iphoneos" cannot be located
    xcrun: error: SDK "iphoneos" cannot be located
    xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
    /Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing: Unknown `--is-lightweight' option
    Try `/Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing --help' for more information
    configure: WARNING: 'missing' script is too old or missing
    configure: error: in `/Users/itkey/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    
    
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:73:in `execute_command'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:27:in `block in executable'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:66:in `block (2 levels) in run_prepare_command'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:60:in `chdir'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:60:in `block in run_prepare_command'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:59:in `run_prepare_command'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_preparer.rb:37:in `prepare!'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:202:in `copy_and_clean'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:159:in `block (2 levels) in uncached_pod'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:157:in `each'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:157:in `block in uncached_pod'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:181:in `in_tmpdir'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:153:in `uncached_pod'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/downloader.rb:42:in `download'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:118:in `download_source'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:561:in `install_source_of_pod'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:512:in `block (2 levels) in install_pod_sources'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:511:in `block in install_pod_sources'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:494:in `each'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:494:in `install_pod_sources'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:253:in `block in download_dependencies'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:252:in `download_dependencies'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:161:in `install!'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `load'
    /usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `<main>'
    FAIL: 1
    

    解决办法

    执行下面命令

    sudo xcode-select --switch /Applications/Xcode.app
    

    执行完成以后在运行

    pod install --verbose
    

    现在就不报错了。

    参考

    https://flaviocopes.com/react-native-fix-iphoneos-cannot-be-located/

    展开全文
  • 列出安装的可用的模拟器: xcrun instruments -s 【如:iPhone 5s (9.0) [00AB3BB6-C5DC-45C7-804F-6B88F57C2AFF] (Simulator)】 查看已安装的模拟器: ios-sim showdevicetypes 【如:iPhone-6s, 11.1 iPhone-6s,...
    1. 列出安装的可用的模拟器: xcrun instruments -s
      【如:iPhone 5s (9.0) [00AB3BB6-C5DC-45C7-804F-6B88F57C2AFF] (Simulator)】

    2. 查看已安装的模拟器: ios-sim showdevicetypes
      【如:iPhone-6s, 11.1
      iPhone-6s, 10.0
      iPhone-6s, 9.0
      iPhone-6s, 11.2
      iPhone-6s, 10.1
      iPhone-6s, 9.2】

    3. 查看已安装的模拟器: xcrun simctl list
      【如:
      – iOS 11.3 –
      iPhone 5s (9ABF3B1A-4A86-4BAC-BBB2-5D63CC30F0DE) (Shutdown)】
      如查看启动的模拟器: xcrun simctl list | grep Booted

    4. 开启上面列表中指定的模拟器: xcrun instruments -w “iPhone 8(11.2)”

    5. 开启指定的模拟器: xcrun simctl boot udid

    6. 关掉模拟器: xcrun simctl shutdown udid
      关掉所有打开的模拟器: xcrun simctl shutdown all

    7. 重置模拟器(清除模拟器的数据和设置)xcrun simctl erase udid

    8. 安装指定app: xcrun simctl install booted <app路径>
      多设备时:xcrun simctl install <app路径>

    9. 安装指定app: ios-sim launch /Users/nali/Desktop/ting.app --devicetypeid iPhone-X, 11.2

    10. 运行指定的app: xcrun simctl launch booted
      多设备时:xcrun simctl launch

    11. 关闭已经打开的应用: xcrun simctl terminate booted
      多设备时:xcrun simctl terminate

    12. 卸载指定应用: xcrun simctl uninstall booted
      多设备时:xcrun simctl uninstall

    13. 截图:xcrun simctl io booted screenshot screenshot.png
      会发现在当前目录下会多了一张照片

    多设备时: xcrun simctl io screenshot screenshot.png

    1. 录屏:xcrun simctl io booted recordVideo example.mp4
      多设备时:xcrun simctl io recordVideo example.mp4

    2. 日志: tail -f
      日志文件的路径:
      /Users/ U s e r N a m e / L i b r a r y / L o g s / C o r e S i m u l a t o r / UserName/Library/Logs/CoreSimulator/ UserName/Library/Logs/CoreSimulator/simulator_hash/system.log

    展开全文
  • macos xcrunI recently run into this problem, after updating my macOS version to Catalina. 在将macOS版本更新为Catalina之后,我最近遇到了这个问题。 Trying to update Hugo via Homebrew triggered this ...
  • 操作iOS模拟器命令(xcrun simctl)

    千次阅读 2019-04-24 14:57:28
    xcrun simctl io booted screenshot /pictures/test.png 2. 录屏命令 xcrun simctl io booted recordVideo /videos/test.mp4 # 在终端按Ctrl+C来停止录屏. 3. 查看已安装的设备 xcrun simctl list #列出安装...
  • 每次升级完macOS都会被 Xcode command line tools missing xcrun 问候一遍,也是挺烦的。 这个春节过光顾着吃喝玩乐,过的蛮颓废的,感觉再也追不上朋友圈各位大佬了。 上班第一天感觉好像不写篇文章有点过意不去,...
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 虽然看上去是git出了问题,但看报错估计很多其他的...
  • , missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun liumiaocn:redis-5.0.4 liumiao$ 原因 Xcode下载之后,默认是不会蓝装Command Line Tools的,而在很多时候都会使用到Command Line ...
  • 更新完mac新版本之后,使用终端的时候可能会出现「xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun」...
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决方案: 在终端输入 xcode-select –install ...
  • Mac下Idea安装Git报错Xcrun问题的解决

    千次阅读 2018-11-06 21:57:35
    一旦你的mac 系统升级了,在使用Git的时候回提示xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun, 此时你需要打开终端,输入: xcode-select --install ...
  • 问题描述:升级macosx后 运行命令 出现了 xcrun: error: invalid active developer path, missing xcrun 错误  解决方案: $xcode-select --install  如果不行,试一下: $sudo xcode-select -switch /...
  • xcrun: error: SDK "iphoneos" cannot be located xcrun: error: SDK "iphoneos" cannot be located xcrun: error: SDK "iphoneos" cannot be located xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos...
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决方法 1.终端输入 xcode-select --install ...
  • Mac下xcrun: error: invalid active developer path问题解决方法 解决办法:打开终端运行: xcode-select --install 因为好多软件需要依赖xcode xcrun xcrun
  • 1、安装Mac os 如果虚拟机网络不可用,开启下图两个服务: 2、安装Xcode 直接在App Store中安装,如果App Store中的版本太高,当前安装的Mac os不能用的话,在Apple官网下载...安装xcrun: xcode-select --install...
  • 之前的某天升级了macOS High Sierra,...“xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun” 解决...
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 出现场景 git svn 不能正常使用 idea 提示 svn...
  • 前面为了能把iPad作为macbook的扩展屏幕使用,跑去升级了OS X系统到最新...clang/git/Clion/Pycharm 等都出现各类失效的问题,可能是invalid path/ missing xcrun/ malformed developr path。 如果是升级后发现的
  • Mac系统下运行vscode c++时的xcrun: error: invalid active developer path错误问题的解决办法. 在Mac os系统进行更新后,再次打开vscode-c++编辑器/终端运行c/c++代码时产生错误 例如: 问题描述: 提示:这里描述...
  • 1,解决方法 xcode-select --install 2,问题原因 更新了Mac系统。
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 在终端输入:xcode-select --install 重...
  • xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 场景: 电脑存储空间不够,删除了Xcode 解决方法: ...
  • 听说为了更好的支持ipadOS、macOS、iOS统一管理,推荐使用xcodebuild或xcrun altool从Organizer或命令行上传应用程序。详情见Xcode更新日志(29008875)说明。 本人在更新Xcode11之后使用Organizer上传应用一直出现...
  • Mac升级了最新的系统,idea右下角...xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决办法: 首...
  • error: command 'xcrun' failed with exit status 1 ---------------------------------------- 解决方法 sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install # 运行完这行,系统会自动...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 4,559
精华内容 1,823
关键字:

xcrun