Skip to content

Unable to build a MAUI iOS app using a self-hosted Azure DevOps build agent #3233

Description

@vecalion

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0.203

OS

iOS

SDK Version

4.2.1

Self-Hosted Sentry Version

No response

Steps to Reproduce

There is a self-hosted build agent on Mac M1 (agent version vsts-agent-osx-x64-3.236.1). After a minor code change, the pipeline that builds the app started to fail with an odd result (see below). Since the change didn't touch any dependencies and was more like a code clean up, I suspect that something has changed in the environment of the build machine. But I don't know what.

Expected Result

The app builds with no issues.

Actual Result

Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  Target: arm64-apple-darwin23.4.0
  Thread model: posix
  InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
   "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch arm64 -dead_strip -exported_symbols_list obj/Release/net8.0-ios/ios-arm64/mtouch-symbols.list -platform_version ios 11.0.0 17.2 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -ObjC -o /Users/valeriykovalenko/sq-agents/agent-2/_work/1/s/STAmina.XF/obj/Release/net8.0-ios/ios-arm64/nativelibraries/STAmina.XF -framework libHarfBuzzSharp -framework <...> 
-framework Sentry -lc++ -lsqlite3 -lz -lc++ -lsqlite3 -lz /Users/valeriykovalenko/sq-agents/agent-2/_work/1/s/STAmina.XF/obj/Release/net8.0-ios/ios-arm64/nativelibraries/aot-output/arm64/System.Private.CoreLib.dll.o /Users/valeriykovalenko/sq-agents/agent-2/_work/1/s/STAmina.XF/obj/Release/net8.0-ios/ios-arm64/nativelibraries/aot-output/arm64/System.Private.CoreLib.dll.llvm.o <...>
2/_work/1/s/STAmina.XF/obj/Release/net8.0-ios/ios-arm64/linker-cache -F/Users/valeriykovalenko/sq-agents/agent-2/_work/1/s/STAmina.XF/obj/Release/net8.0-ios/ios-arm64/linker-cache
  Undefined symbols for architecture arm64:
    "_SentryVersionNumber", referenced from:
       -exported_symbol[s_list] command line option
    "_SentryVersionString", referenced from:
       -exported_symbol[s_list] command line option
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions