Skip to content

Unable to run Samples app on iOS #13416

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

Open
MartinZikmund opened this issue Aug 26, 2023 · 5 comments
Open

Unable to run Samples app on iOS #13416

MartinZikmund opened this issue Aug 26, 2023 · 5 comments
Assignees
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform

Comments

@MartinZikmund
Copy link
Member

MartinZikmund commented Aug 26, 2023

Current behavior

Trying to run Samples app on iOS Simulator ends with:

clang++ exited with code 1:
ld: in /Users/daniel/Library/Caches/Xamarin/mtbs/builds/SamplesApp.netcoremobile/01c38b1798e90a185a2e09d7c2fcf1b8b6b2ae9823c82df85514ef40dafd7f66/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/calabash(LPGCDAsyncSocket.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/daniel/Library/Caches/Xamarin/mtbs/builds/SamplesApp.netcoremobile/01c38b1798e90a185a2e09d7c2fcf1b8b6b2ae9823c82df85514ef40dafd7f66/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/calabash'
clang: error: linker command failed with exit code 1 (use -v to see invocation) SamplesApp.netcoremobile C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7089\targets\Xamarin.Shared.Sdk.targets 1274

Or with the same error in regards to Harfbuzz.NativeAssets.iOS (which can be fixed by the upgrade to latest SkiaSharp)

Expected behavior

Should build and run successfully

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

Bin log:
binlog.zip

@MartinZikmund MartinZikmund added kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI labels Aug 26, 2023
@Youssef1313
Copy link
Member

Maybe this is the same as dotnet/macios#18688?

@jeromelaban
Copy link
Member

@MartinZikmund you may want to try upgrading to the latest SkiaSharp which has bindings on arm64. We can't upgrade to the latest 2.88.5 in uno because it would bump to the latest workloads (because of dotnet/sdk#30103). So you'll need to keep the change local for now (inside of the uno solution). The template for 4.10+ have been upgraded already.

@MartinZikmund
Copy link
Member Author

@jeromelaban unfortunately the error above showed up after upgrading everything SkiaSharp to the latest version 🤔

@MartinZikmund
Copy link
Member Author

Can confirm this issue is M1 specific, no problems running Samples app on Intel-based Mac

@rolfbjarne
Copy link

I believe this is the problem: calabash/calabash-ios-server#483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform
Projects
None yet
Development

No branches or pull requests

4 participants