Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

ld: building for iOS Simulator but linking in object file built for iOS for ARM64, .NET8 iOS building ios using Windows latpot #655

Open
fsaffioti opened this issue Apr 12, 2024 · 0 comments

Comments

@fsaffioti
Copy link

fsaffioti commented Apr 12, 2024

If i try to build from my windows 11 (using parallels on MAC M3PRO) I'm getting this error

Severity Code Description Project File Line Suppression State
Error clang++ exited with code 1:
ld: building for iOS Simulator, but linking in object file built for iOS, file '/xxxxxxxx/OS/ba7bd34b64f1e3ed52bf1d6714a0e1a4dec0027756a544eef07692ba78bed5d4/C:/Users/xxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) xxxxx.Mobile.iOS C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets 1559

My debug configuratiom:

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
    <CodesignKey>iPhone Developer</CodesignKey>
    <CodesignProvision>Automatic</CodesignProvision>
    <CreatePackage>false</CreatePackage>
    <DeviceSpecificBuild>true</DeviceSpecificBuild>
    <WarningLevel>4</WarningLevel>
    <OutputPath>bin\Debug</OutputPath>
	<RuntimeIdentifier>iossimulator-arm64</RuntimeIdentifier>
  </PropertyGroup>

it's .net 8 ios native projcect

the nuget package is Xamarin.Google.iOS.Maps 6.0.1.1

If I build directly on a Mac, I don't have any issues.

here the most important build error and warning related google.ios.maps

8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Base/Frameworks/GoogleMapsBase.framework is a framework of static libraries, and will not be copied to the app.
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Maps/Frameworks/GoogleMapsCore.framework is a framework of static libraries, and will not be copied to the app.
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Maps/Frameworks/GoogleMaps.framework is a framework of static libraries, and will not be copied to the app.
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Base/Frameworks/GoogleMapsBase.framework is a framework of static libraries, and will not be copied to the app.
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Maps/Frameworks/GoogleMapsCore.framework is a framework of static libraries, and will not be copied to the app.
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(746,3): warning MT7091: The framework C:/Users/xxxxx/AppData/Local/XamarinBuildDownloadCache/GMps-6.0.1/Maps/Frameworks/GoogleMaps.framework is a framework of static libraries, and will not be copied to the app.
8>Tool xcrun execution finished (exit code = 1).
8>ld: in /Users/xxxx/Library/Caches/Xamarin/mtbs/builds/xxxxxxx/ba7bd34b64f1e3ed52bf1d6714a0e1a4dec0027756a544eef07692ba78bed5d4/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterAnalytics.a(MSACAnalytics.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/xxxxxxxx/Library/Caches/Xamarin/mtbs/builds/xxxxx.Mobile.iOS/ba7bd34b64f1e3ed52bf1d6714a0e1a4dec0027756a544eef07692ba78bed5d4/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterAnalytics.a'
8>clang: error: linker command failed with exit code 1 (use -v to see invocation)
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(1559,3): error : clang++ exited with code 1:
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(1559,3): error : ld: in /Users/xxxxxx/Library/Caches/Xamarin/mtbs/builds/xxxxx.Mobile.iOS/ba7bd34b64f1e3ed52bf1d6714a0e1a4dec0027756a544eef07692ba78bed5d4/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterAnalytics.a(MSACAnalytics.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/xxxxxx/Library/Caches/Xamarin/mtbs/builds/xxx.Mobile.iOS/ba7bd34b64f1e3ed52bf1d6714a0e1a4dec0027756a544eef07692ba78bed5d4/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterAnalytics.a'
8>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8043\targets\Xamarin.Shared.Sdk.targets(1559,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant