相关文章推荐

Android (Java/Gradle)

下面是本机 Android 内部版本的示例输出:

=====================================================================
Task         : Gradle
Description  : Build using a Gradle wrapper script
Version      : 1.128.0
Author       : Microsoft Corporation
Help         : More Information
=====================================================================
SYSTEMVSSCONNECTION exists true
[command]/Users/vsts/agent/2.150.0/work/1/s/gradlew -DMOBILECENTER_KEYSTORE_PASSWORD=*** -DMOBILECENTER_KEY_ALIAS=*** -DMOBILECENTER_KEY_PASSWORD=*** -DMOBILECENTER_BUILD_VERSION=12 -DAPPCENTER_KEYSTORE_PASSWORD=*** -DAPPCENTER_KEY_ALIAS=*** -DAPPCENTER_KEY_PASSWORD=*** -DAPPCENTER_BUILD_VERSION=12 clean :app:assembleRelease :app:testRelease :app:lintRelease

iOS (Objective-C/Swift)

下面是本机 iOS 生成的示例输出:

=====================================================================
Task         : Xcode
Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
Version      : 4.130.0
Author       : Microsoft Corporation
Help         : More Information
=====================================================================
[command]/usr/bin/xcodebuild -version
Xcode 10.2
Build version 10E125
[command]/usr/bin/xcodebuild -sdk iphoneos -workspace /Users/vsts/agent/2.149.2/work/1/s/SampleiOS.xcworkspace -scheme SampleiOS clean DSTROOT=/Users/vsts/agent/2.149.2/work/1/output/build/build.dst OBJROOT=/Users/vsts/agent/2.149.2/work/1/output/build/build.obj SYMROOT=/Users/vsts/agent/2.149.2/work/1/output/build/build.sym SHARED_PRECOMPS_DIR=/Users/vsts/agent/2.149.2/work/1/output/build/build.pch CODE_SIGN_STYLE=Manual

React Native

若要在本地重现,请确保还从 package.json 文件安装包依赖项:

  • 使用 npm - npm install
  • 使用 yarn - yarn install
  • Android

    由于React Native指向要编译的 Android SDK 的链接,输出将类似于本机 Android 应用程序:

    =====================================================================
    Task         : Gradle
    Description  : Build using a Gradle wrapper script
    Version      : 1.128.0
    Author       : Microsoft Corporation
    Help         : More Information
    =====================================================================
    SYSTEMVSSCONNECTION exists true
    [command]/Users/vsts/agent/2.149.2/work/1/s/android/gradlew -DMOBILECENTER_BUILD_VERSION=5 -DAPPCENTER_BUILD_VERSION=5 -p android clean :app:assembleRelease :app:lintRelease
    

    由于React Native指向要编译的 Xcode 的链接,因此它的输出将类似于本机 iOS 应用程序的输出:

    =====================================================================
    Task         : Xcode
    Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
    Version      : 4.130.0
    Author       : Microsoft Corporation
    Help         : More Information
    =====================================================================
    [command]/usr/bin/xcodebuild -version
    Xcode 10.2
    Build version 10E125
    ##[warning]Output directory for build output (binaries) ignored. Specifying an output directory is incompatible with the 'archive' action.
    [command]/usr/bin/xcodebuild -sdk iphoneos -project /Users/vsts/agent/2.149.2/work/1/s/ios/SampleReactNative.xcodeproj -scheme SampleReactNative clean archive -archivePath /Users/vsts/agent/2.149.2/work/1/output/build/archive/SampleReactNative.xcarchive -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO
    

    Xamarin

    Android

    下面是 Xamarin.Android 内部版本的一些示例输出。 要检查的关键行位于方括号后面 [command] ,但标题有助于查找正确的位置。

    =====================================================================
    Task         : Xamarin.Android
    Description  : Build an Android app with Xamarin
    Version      : 1.151.0
    Author       : Microsoft Corporation
    Help         : More Information
    =====================================================================
    [command]/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild /version /nologo
    [command]/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild /Users/vsts/agent/2.150.3/work/1/s/Xamarin.UITest/FormsGallery/FormsGallery/FormsGallery.Android/FormsGallery.Android.csproj /t:PackageForAndroid /p:Configuration=Debug
    

    Xamarin.iOS 的格式几乎相同,只是对 的引用 AndroidiOS

    =====================================================================
    Task         : Xamarin.iOS
    Description  : Build an iOS app with Xamarin on macOS
    Version      : 1.131.0
    Author       : Microsoft Corporation
    Help         : More Information
    =====================================================================
    [command]/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild /version /nologo
    [command]/Library/Frameworks/Mono.framework/Versions/5_18_2/bin/msbuild /Users/vsts/agent/2.150.3/work/1/s/Xamarin.UITest/FormsGallery/FormsGallery.sln /p:Configuration=Debug /p:Platform=iPhoneSimulator /t:Rebuild
    
     
    推荐文章