dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.98k stars 4.66k forks source link

[tests] System.Numerics.Vectors.Tests hitting Failed to sign the app on iOS device arm64 #78380

Open mdh1418 opened 1 year ago

mdh1418 commented 1 year ago

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=82825&view=logs&j=acac6bf3-3edd-5022-4e45-3362a02520b1&t=1de8bf71-8fe5-5d5c-4360-8c2eb159d012 Log: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-76551-merge-c98d1d6ebe104f43ab/System.Numerics.Vectors.Tests/1/console.0ee57833.log?helixlogtype=result

 [System.Numerics.Vectors.Tests.dll] Exec (with response file contents expanded) in /tmp/helix/working/B8140996/w/B2FC09A5/e/publish: MONO_PATH=/tmp/helix/working/B8140996/w/B2FC09A5/e/publish: MONO_ENV_OPTIONS= /tmp/helix/working/B8140996/p/build/cross/mono-aot-cross -O=gsharedvt --debug --llvm "--aot=mtriple=arm64-ios,static,dwarfdebug,mattr=+crc,direct-icalls,nimt-trampolines=2000,ntrampolines=40000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=4400,nftnptr-arg-trampolines=4000,nrgctx-trampolines=40000,nodebug,llvm-path=/tmp/helix/working/B8140996/p/build/cross,static,full,asmonly,outfile=/tmp/helix/working/B8140996/w/B2FC09A5/e/apple_build/obj/mobile/System.Numerics.Vectors.Tests.dll.s,llvm-outfile=/tmp/helix/working/B8140996/w/B2FC09A5/e/apple_build/obj/mobile/System.Numerics.Vectors.Tests.dll-llvm.o,data-outfile=/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/System.Numerics.Vectors.Tests.aotdata" "System.Numerics.Vectors.Tests.dll"

/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : Precompiling failed for /tmp/helix/working/B8140996/w/B2FC09A5/e/publish/System.Numerics.Vectors.Tests.dll with exit code 1. [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : /tmp/helix/working/B8140996/p/build/cross/opt: /tmp/helix/working/B8140996/w/B2FC09A5/e/apple_build/obj/mobile/System.Numerics.Vectors.Tests.dll.s.bc: error: Invalid record (Producer: 'LLVM14.0.0' Reader: 'LLVM 14.0.0') [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : AOT of image System.Numerics.Vectors.Tests.dll failed. [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : Mono Ahead of Time compiler - compiling assembly /private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/System.Numerics.Vectors.Tests.dll [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : AOTID 8550E0A1-6194-8C5E-8D3B-0315FDC8151E [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/B8140996/p/build/apple/AppleApp.targets(91,5): error : Executing opt: "/tmp/helix/working/B8140996/p/build/cross/opt" -f -O2 -disable-tail-calls -place-safepoints -spp-all-backedges -enable-new-pm=0 -mattr=+crc -o "/tmp/helix/working/B8140996/w/B2FC09A5/e/apple_build/obj/mobile/System.Numerics.Vectors.Tests.dll.s.opt.bc" "/tmp/helix/working/B8140996/w/B2FC09A5/e/apple_build/obj/mobile/System.Numerics.Vectors.Tests.dll.s.bc" [/private/tmp/helix/working/B8140996/w/B2FC09A5/e/publish/ProxyProjectForAOTOnHelix.proj]

Signing /tmp/helix/working/B8140996/w/B2FC09A5/e/System.Numerics.Vectors.Tests.app
No embedded provisioning profile found at /tmp/helix/working/B8140996/w/B2FC09A5/e/System.Numerics.Vectors.Tests.app/embedded.mobileprovision! Failed to sign the app!
SamMonoRT commented 1 year ago

cc @akoeplinger @directhex -- any known issues with signing ?

SamMonoRT commented 1 year ago

cc fyi @fanyang-mono

fanyang-mono commented 1 year ago

Seem to be an CI infrastructure issue.

kotlarmilos commented 1 year ago

It could happen if MonoAOTCompiler task fails (in my case due to a missing library - https://github.com/dotnet/runtime/runs/11413985306) and AppleAppBuilder doesn't produce a bundle. Then, xharness tries to sign an empty bundle and reports No embedded provisioning profile found.

premun commented 1 year ago

Just a bit of context - provisioning profile is a file named embedded.mobileprovision that needs to be placed in the root of the .app bundle.