Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maui Net6/7: Undefined Symbols for architecture arm64 error #16223

Closed
LoopedBard3 opened this issue Oct 3, 2022 · 21 comments
Closed

Maui Net6/7: Undefined Symbols for architecture arm64 error #16223

LoopedBard3 opened this issue Oct 3, 2022 · 21 comments
Labels
bug If an issue is a bug or a pull request a bug fix
Milestone

Comments

@LoopedBard3
Copy link

When attempting to build both Maui net6 and net7 versions for iOS, clang hits a linker error. These appear to be the same on both the net6 and net7 versions. Similar build processes are used for both but will use the net7 version for the reproduction steps. This may be better off in the Maui repo, but figured to start here given the error is specifically coming from Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14 on for net7 and Microsoft.iOS.Sdk/16.0.515 for net6 with reference to Xamarin targets.

Steps to Reproduce

General

  1. Download latest dotnet 7
  2. Install the maui workload ensuring to point to latest packages (https://aka.ms/dotnet/maui/net7.0.json)
  3. Generate the boiler plate Maui Project
  4. Restore and build the project

Specific (Exact steps given clean environment, does download files)

curl -o NuGet.config 'https://raw.githubusercontent.com/dotnet/maui/main/NuGet.config'
curl -o dotnet-install.sh 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh'
curl -Lo maui-supported-sdk-version.json 'https://aka.ms/dotnet/sdk/maui/net7.0.json'
chmod -R a+rx .
./dotnet-install.sh --version 7.0.100-rc.2.22477.20 --install-dir .
./dotnet --info
./dotnet workload install maui --from-rollback-file https://aka.ms/dotnet/maui/net7.0.json --configfile NuGet.config
./dotnet new maui -n MauiTesting
cd MauiTesting
cp $(Build.SourcesDirectory)/NuGet.config ./NuGet.config
# remove net7.0-maccatalyst to work around https://github.com/dotnet/sdk/issues/21877
cp MauiTesting.csproj MauiTesting.csproj.bak
sed -i'' -e 's/net7.0-ios;net7.0-maccatalyst/net7.0-ios/g' MauiTesting.csproj
../dotnet publish -bl:MauiiOS.binlog -f net7.0-ios --self-contained -r ios-arm64 -c Release /p:_RequireCodeSigning=false /p:ApplicationId=net.dot.mauitesting

Expected Behavior

The app should build into an ipa file that can be run for testing.

Actual Behavior

We get to the linker step and then fail.

  Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
  Optimizing assemblies for size. This process might take a while.
ILLINK : warning MT0079: The recommended Xcode version for Microsoft.iOS 16.0.1263 is Xcode 14.0 or later. The current Xcode version (found in /Applications/Xcode_13.2.1.app/Contents/Developer) is 13.2.1. [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
  		
  Tool xcrun execution finished (exit code = 1).
          
  Undefined symbols for architecture arm64:
    "_objc_msgSend$valueWithUIOffset:", referenced from:
        _xamarin_uioffset_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
    "_objc_msgSend$valueWithSCNVector4:", referenced from:
        _xamarin_scnvector4_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
    "_objc_msgSend$valueWithSCNMatrix4:", referenced from:
        _xamarin_scnmatrix4_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
    "_objc_msgSend$valueWithMKCoordinateSpan:", referenced from:
        _xamarin_mkcoordinatespan_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
    "_objc_msgSend$valueWithMKCoordinate:", referenced from:
................................................. (Much of the same)
        _xamarin_release_managed_ref in libxamarin-dotnet.a(runtime-dotnet.arm64.o)
    "_objc_msgSend$numberWithUnsignedLongLong:", referenced from:
        _xamarin_ulong_to_nsnumber in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
    "_objc_msgSend$componentsJoinedByString:", referenced from:
        xamarin_compute_trusted_platform_assemblies() in libxamarin-dotnet.a(runtime-dotnet.arm64.o)
        xamarin_compute_native_dll_search_directories() in libxamarin-dotnet.a(runtime-dotnet.arm64.o)
    "_objc_msgSend$release", referenced from:
        _xamarin_printf in libxamarin-dotnet.a(runtime-dotnet.arm64.o)
        _xamarin_release_managed_ref in libxamarin-dotnet.a(runtime-dotnet.arm64.o)
        ___32-[XamarinNSThreadObject dealloc]_block_invoke in libxamarin-dotnet.a(shared-dotnet.arm64.o)
        _xamarin_log in libxamarin-dotnet.a(xamarin-support-dotnet.arm64.o)
        _xamarin_set_gchandle_trampoline in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error : clang++ exited with code 1: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error : Undefined symbols for architecture arm64: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithUIOffset:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_uioffset_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithSCNVector4:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_scnvector4_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithSCNMatrix4:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_scnmatrix4_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithMKCoordinateSpan:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_mkcoordinatespan_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithMKCoordinate:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_cllocationcoordinate2d_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithCGVector:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_cgvector_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o) [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :   "_objc_msgSend$valueWithCMTimeRange:", referenced from: [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]
/Users/runner/work/1/s/packs/Microsoft.iOS.Sdk/16.0.1263-rc.2-xcode14/targets/Xamarin.Shared.Sdk.targets(1230,3): error :       _xamarin_cmtimerange_to_nsvalu [/Users/runner/work/1/s/MauiTesting/MauiTesting.csproj::TargetFramework=net7.0-ios]

Environment

Runtime Information
.NET SDK:
 Version:   7.0.100-rc.2.22477.20
 Commit:    915e3f7110

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  11.7
 OS Platform: Darwin
 RID:         osx.11.0-x64
 Base Path:   /Users/runner/work/1/s/sdk/7.0.100-rc.2.22477.20/

Host:
  Version:      7.0.0-rc.2.22464.1
  Architecture: x64
  Commit:       c623d96fe3

.NET SDKs installed:
  7.0.100-rc.2.22477.20 [/Users/runner/work/1/s/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.0-rc.2.22464.13 [/Users/runner/work/1/s/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.0-rc.2.22464.1 [/Users/runner/work/1/s/shared/Microsoft.NETCore.App]
Workloads used in rollback
{
"microsoft.net.sdk.android": "33.0.0-rc.2.202/7.0.100-rc.2",
"microsoft.net.sdk.ios": "16.0.1263-rc.2-xcode14/7.0.100-rc.2",
"microsoft.net.sdk.maccatalyst": "15.4.1180-rc.2/7.0.100-rc.2",
"microsoft.net.sdk.macos": "12.3.1180-rc.2/7.0.100-rc.2",
"microsoft.net.sdk.maui": "7.0.0-rc.2.6802/7.0.100-rc.2",
"microsoft.net.sdk.tvos": "16.0.1263-rc.2-xcode14/7.0.100-rc.2",
"microsoft.net.workload.mono.toolchain.net6": "7.0.0-rc.2.22472.3/7.0.100",
"microsoft.net.workload.mono.toolchain.net7": "7.0.0-rc.2.22472.3/7.0.100",
"microsoft.net.workload.emscripten.net6": "7.0.0-rc.2.22465.1/7.0.100",
"microsoft.net.workload.emscripten.net7": "7.0.0-rc.2.22465.1/7.0.100"
}

Build Logs

MauiiOS.zip

@rolfbjarne
Copy link
Member

I'm not entirely sure what's going on, but I believe this goes away if you use Xcode 14:

warning MT0079: The recommended Xcode version for Microsoft.iOS 16.0.1263 is Xcode 14.0 or later.

@rolfbjarne
Copy link
Member

It seems that clang from Xcode 14 will by default produce object files that earlier native linkers don't understand.

The reason being that clang by default enables objc_msgSend stubs.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

There's apparently an (undocumented) way around this, by passing -fno-objc-msgsend-selector-stubs to clang.

rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Oct 4, 2022
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes xamarin#16223.
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Oct 4, 2022
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes xamarin#16223.
@rolfbjarne rolfbjarne added the bug If an issue is a bug or a pull request a bug fix label Oct 4, 2022
@rolfbjarne rolfbjarne added this to the xcode14.1 milestone Oct 4, 2022
vs-mobiletools-engineering-service2 pushed a commit to vs-mobiletools-engineering-service2/xamarin-macios that referenced this issue Oct 4, 2022
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes xamarin#16223.
vs-mobiletools-engineering-service2 pushed a commit to vs-mobiletools-engineering-service2/xamarin-macios that referenced this issue Oct 4, 2022
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes xamarin#16223.
rolfbjarne added a commit that referenced this issue Oct 5, 2022
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes #16223.
rolfbjarne added a commit that referenced this issue Oct 5, 2022
 #16223. (#16232)

Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes #16223.

Backport of #16231

Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
rolfbjarne added a commit that referenced this issue Oct 5, 2022
…16236)

Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: llvm/llvm-project#56034

Fixes #16223.

Backport of #16231

Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
@LoopedBard3
Copy link
Author

This appears to have fixed the issue on our net7 runs, but we are still experiencing it on runs build using .Net 6.

@rolfbjarne
Copy link
Member

This has been fixed, but the fixes haven't been released yet.

I'm guessing you're using Xcode 14 in your .NET 7 runs, the problem doesn't show up then.

@oscore-john
Copy link

oscore-john commented Oct 12, 2022

@rolfbjarne we are getting this on Microsoft Hosted MacOS (started a few days ago). We tried macos-11 and macos-12/latest.
We are compiling against .net 6. We are open to compiling against .net 7 preview builds/RCs if that gets us around this. What is the easiest fix for us? (or will the above fix make its way onto Microsoft Hosted MacOS machines (very) soon?

ILLINK : warning MT0079: The recommended Xcode version for Microsoft.iOS 16.0.517 is Xcode 14.0 or later. The current Xcode version (found in /Applications/Xcode_13.2.1.app/Contents/Developer) is 13.2.1. [/Users/runner/work/1/s/Infinox.IXSocial.Mobile/FrontEnd/src/UI/Clients/FrontEnd.UI.Maui.Blazor/FrontEnd.UI.Maui.Blazor.csproj]

Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Tool xcrun execution finished (exit code = 1).

Undefined symbols for architecture arm64:
"_objc_msgSend$valueWithUIOffset:", referenced from:
_xamarin_uioffset_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
"_objc_msgSend$valueWithSCNVector4:", referenced from:
_xamarin_scnvector4_to_nsvalue in libxamarin-dotnet.a(trampolines-dotnet.arm64.o)
"_objc_msgSend$valueWithSCNMatrix4:", referenced from:
<snip/?

@rolfbjarne
Copy link
Member

@oscore-john the easiest fix is probably to use Xcode 14 instead of Xcode 13.* (as the MT0079 warning says).

The fix for the issue will be included in our release supporting Xcode 14.1 (and that release date depends on Apple, we have no say in the matter).

@stevenford-oscore
Copy link

Thanks @rolfbjarne , sorry if this is a naive question, can we, and if we can, then how do we, do this via Azure devops? We're currently doing the actual build using:

- task: DotNetCoreCLI@2
  displayName: "MAUI build IOS"
  inputs:
    command: 'build'
    projects: '$(Build.SourcesDirectory)/App/FrontEnd/src/UI/FrontEnd.UI.Maui.Blazor.csproj'
    arguments: '-c Release -f net6.0-ios -o ixpublish -p:BuildIpa=True -p:IpaPackagePath=ixpublish/ipa/app.ipa  --self-contained'

We're using the 'macOS-latest' image. Am I right in reading your message that we would need to create our own MacOS image for this purpose?

(I've not done much iOS / mac development before, so apologies if the answer should be obvious)

Thanks in advance

@rolfbjarne
Copy link
Member

Looks like it should be the default here: https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode? Although I'm not sure, maybe read the docs or raise an issue here: https://github.com/actions/runner-images

@stevenford-oscore
Copy link

Thanks, so at least I'm not going completely crazy! :-)

@stevenford-oscore
Copy link

In case anyone else comes across this - macos-latest seemed to still point at previous versions [of xcode], whereas using macos-12 solved the problem (at least for us).

@AlphaNERD-
Copy link

@rolfbjarne Short question: How can i add the flag -fno-objc-msgsend-selector-stubs to the build settings? Alternatively how can i roll back to the previous version of Xamarin.iOS?

I can't wait for the update to be released.

@rolfbjarne
Copy link
Member

How can i add the flag -fno-objc-msgsend-selector-stubs to the build settings?

You can't, this happens because we didn't use this flag when we built our binaries.

Alternatively how can i roll back to the previous version of Xamarin.iOS?

You can find older packages here: https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md

@binarysenator
Copy link

You are someone of great beauty for leaving this comment here. Thank you, saved me hours of assuming I'd gone wrong.

@bbatuhandogan
Copy link

bbatuhandogan commented Oct 16, 2022

Hi really thanks a lot, you also saved my hours. I had a question, where did you get this flag? It's not in the man page. Thanks. @rolfbjarne

@steviehutch
Copy link

steviehutch commented Oct 24, 2022

Hi, I am getting the same errors when building a very simple Xamarin Forms app based on the visual studio flyout template in Visual Studio for Mac Pre-release 2022 ( version 17.4 ). App builds fine for Android. App builds fine in iOS debug. As soon as I select iOS Release build ( in order to archive for publishing ), I get the MTOUCH: error MT5210 Native linking failed, undefined symbol ( see below ). I cannot upgrade to Xcode 14 as I am using a Mac that is limited to Big Sur ( you need Monterey to upgrade to Xcode 14 ) and my Mac apparently does not support Monterey.
( I have set linker behaviour to 'link framework SDKs only' ).
Is there a build or linker option that I have missed. I am using the following website for guidance as to the release procedure for Xamarin iOS Apps:

https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/publishing-to-the-app-store?tabs=macos

***************************************** errors below *********************************

MTOUCH : warning MT0079: The recommended Xcode version for Xamarin.iOS 16.0.0 is Xcode 14.0 or later. The current Xcode version (found in /Applications/Xcode.app/Contents/Developer) is 13.2.1.
MTOUCH : warning MT5215: References to 'System' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'System.Net.Security' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithUIOffset:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithSCNVector4:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithSCNMatrix4:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithMKCoordinateSpan:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithMKCoordinate:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCGVector:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCMTimeRange:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCGSize:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCGPoint:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCGAffineTransform:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithRange:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithFloat:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithUnsignedInteger:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithUnsignedLongLong:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithUnsignedInt:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithShort:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithChar:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithBool:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$SCNMatrix4Value. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CMTimeMappingValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithDirectionalEdgeInsets:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$stringWithFormat:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$MKCoordinateValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$SCNVector3Value. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CATransform3DValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCATransform3D:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithInt:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$directionalEdgeInsetsValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CGVectorValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$class. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CGSizeValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$charValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$data. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CGPointValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$unsignedLongLongValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$MKCoordinateSpanValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CGAffineTransformValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$longLongValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$shortValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$boolValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$arrayWithObjects:count:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$array. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$detachNewThreadSelector:toTarget:withObject:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$start. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CMTimeValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$addObserver:selector:name:object:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$methodReturnType. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$doubleValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$signatureWithObjCTypes:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$methodSignatureForSelector:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$copy. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithDouble:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$mainBundle. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$methodReturnLength. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CMTimeRangeValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberOfArguments. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$retain. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$init. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$path. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$alloc. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$lastObject. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$unsignedShortValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$unsignedIntegerValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$bundlePath. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithName:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$defaultCenter. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$getBytes:length:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithUnsignedChar:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$floatValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithSCNVector3:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithBytes:length:encoding:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$integerValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$userInfo. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$lengthOfBytesUsingEncoding:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCMTimeMapping:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$intValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$autorelease. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$xamarinSetGCHandle:flags:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$debugDescription. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithUnsignedShort:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$count. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$getArgumentTypeAtIndex:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$localTimeZone. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$description. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$defaultManager. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$isMainThread. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$dictionaryWithObject:forKey:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$objectAtIndex:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$createWithHandle:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$unsignedCharValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$xamarinGetFlags. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithName:reason:userInfo:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$xamarinGetGCHandle. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$URLsForDirectory:inDomains:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithUIEdgeInsets:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$UIEdgeInsetsValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithFunc:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$getHandle. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$SCNVector4Value. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCGRect:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithUTF8String:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$stringByStandardizingPath. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$frameLength. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$CGRectValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$initWithFormat:arguments:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$length. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$drain. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$rangeValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$UTF8String. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$retainCount. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$name. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$stringWithUTF8String:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$unsignedIntValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithLongLong:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$reason. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$numberWithInteger:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$objectForKey:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$UIOffsetValue. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$valueWithCMTime:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$xamarinSetFlags:. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _objc_msgSend$release. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5202: Native linking failed. Please review the build log.
clang : error : linker command failed with exit code 1 (use -v to see invocation)
3 Warning(s)
123 Error(s)


thank you.

@rolfbjarne
Copy link
Member

@steviehutch you can either:

@steviehutch
Copy link

steviehutch commented Oct 24, 2022 via email

@rolfbjarne
Copy link
Member

Thank you for the quick and positive response. When is the next service release planned ( roughly ) ?

I can't really say because it depends on external factors (for instance when Apple will make Xcode 14.1 stable), but my guess would be a few weeks.

@steviehutch
Copy link

steviehutch commented Oct 25, 2022 via email

@rolfbjarne
Copy link
Member

I assume the service release will rely on me using Xcode 14.1?

You can usually keep using an older Xcode for a while (we don't specifically block it). Note that Apple will eventually require you to build with Xcode 14 (probably next spring).

The reason we're kind of dependent on Xcode 14.1 is that we roughly base our release schedule around Xcode releases.

To downgrade just download the package you want here: https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md, any recent ones should work fairly well with most versions of VSMac.

@steviehutch
Copy link

steviehutch commented Oct 25, 2022 via email

@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug If an issue is a bug or a pull request a bug fix
Projects
None yet
Development

No branches or pull requests

8 participants