Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet][msbuild] Fix RelativePath inside ResolvedFileToPublish (#11173)
This worked fine up to P3 but failed with an early bump [1] to P4 where paths became invalid (missing a `/`) like: `bin/iPhoneSimulator/Debug/net6.0-ios/iossimulator-x64/publish/../dont link.applibxamarin-dotnet-debug.dylib` and did not copy the required `.dylib` [2] (and other stuff) inside the app bundle. [1] #11127 [2] .dylib where the first thing to crash at startup ``` Termination Reason: DYLD, [0x1] Library missing Application Specific Information: dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/builder/Library/Developer/CoreSimulator/Caches/dyld/19G2021/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46 DYLD_ROOT_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib Dyld Error Message: dyld: Using shared cache: C11E5D38-A0B0-37FA-AECD-28B337F6C0CA Library not loaded: @rpath/libxamarin-dotnet-debug.dylib Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/B3F9E3AC-227F-4B66-9F12-76C5B2CE4E34/data/Containers/Bundle/Application/379106D5-912C-47CC-A0E5-446C7C524706/dont link.app/dont link Reason: image not found ```
- Loading branch information
ccb43cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Tests failed on Build ❌
Tests failed on Build.
API diff
✅ API Diff from stable
View API diff
Packages generated
View packages
Test results
1 tests failed, 180 tests passed.
Failed tests
Pipeline on Agent XAMBOT-1035'
ccb43cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests tvOS (no summary found). 🔥
Result file $(TEST_SUMMARY_PATH) not found.
Pipeline on Agent
ccb43cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests iOS (no summary found). 🔥
Result file $(TEST_SUMMARY_PATH) not found.
Pipeline on Agent
ccb43cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests iOS32b (no summary found). 🔥
Result file $(TEST_SUMMARY_PATH) not found.
Pipeline on Agent