Bug 36293 - Native linking error MT5202 [TVOS]
Summary: Native linking error MT5202 [TVOS]
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: XI 9.3 (xcode 7.1 previews)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: tvOS
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-26 15:34 UTC by support
Modified: 2015-11-27 13:54 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
build log (263.28 KB, text/plain)
2015-11-26 15:34 UTC, support
Details
attached system info (975 bytes, text/plain)
2015-11-26 15:34 UTC, support
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description support 2015-11-26 15:34:16 UTC
Created attachment 14008 [details]
build log

Hi,

I'm trying to make the final build to release a game for Apple TV. 

When I try to make the final build, with Release, LLVM compiler and --bitcode=asmonly on mtouch parameters I get the following error:

MT5209: Native linking error: building for tvOS, but linking in object file built for iOS, file '/Users/Kak/diskd/projects/pacman/sln/tvos_pacman/tvos_game/obj/iPhone/Release/mtouch-cache/CoconutChomperTV.exe.arm64-llvm.o' for architecture arm64 (MT5209)


Compiling in debug and release (even with LLVM) works and runs on Apple TV. Problem only appears with --bitcode=asmonly
Comment 1 support 2015-11-26 15:34:36 UTC
Created attachment 14009 [details]
attached system info
Comment 7 Rod 2015-11-27 03:06:12 UTC
Hi guys 

I've been having the same problem for two days now. Is there any news?

I have tried with every combination of settings now. Everything with --bitcode=asmonly fails and everything without it works (debug/ release and simulator/device). I can even "Archive for publishing" without "--bitcode=asmonly" and then using this option fails.

My complete details are in:
https://forums.xamarin.com/discussion/comment/167705#Comment_167705

I even create an brand new single view project changing nothing (not even the base code) and it builds ok, I then put in --bitcode=asmonly and it fails. Changed nothing else.

Has ANYONE got a xamarin build into the app store? If so, what did they do?
Rod
Comment 10 Sebastien Pouliot 2015-11-27 13:35:27 UTC
The first reported error (MT5202) was already fixed and the missing frameworks (that needed to be added manually) is fixed by

maccore/master da36a3244a52310a4f3896909b5c8ce17e9f24cb

Both fixes to be available in our next preview.

@Rod you're likely hitting the same issue - but just to be sure please open a different bug report and attach your full build logs (as described in [1]) and we'll do our best to give you workarounds until a new public preview is out.

[1] http://forums.xamarin.com/discussion/comment/167674/#Comment_167674