Bug 50790 - Linker in Release Mode removes LaunchScreen Storyboard once deployed through TestFlight
Summary: Linker in Release Mode removes LaunchScreen Storyboard once deployed through ...
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-12-25 20:56 UTC by veryhumble
Modified: 2017-06-19 23:59 UTC (History)
4 users (show)

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

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 NORESPONSE

Description veryhumble 2016-12-25 20:56:38 UTC
Hi,

On enabling the linker in Release Mode with "Sdk assemblies only" all Effects do not work anymore. Additionally the custom LaunchScreen.storyboard also is gone. Everything Works in Debug on an iPhone with the Linker set to "Sdk assemblies only".

To me, this seems weird. All Effects are inside a separate Project, linked in the Solution.

Without the Linker to work properly we are unable to release an App.

I am happy to provide any additional information if needed.
Comment 1 adrianknight89 2016-12-29 04:55:34 UTC
I'd say if this is confirmed, then it's a serious issue. What version of XF are you using? What about Xamarin.iOS? You should post some environment info. A repro would also be nice.
Comment 2 Samantha Houts [MSFT] 2016-12-30 20:51:33 UTC
@veryhumble: Yes, please provide a reproduction to help us reproduce this issue. Thank you!

Warm regards,
Xamarin.Forms Team
Comment 3 veryhumble 2017-01-04 12:43:57 UTC
Some environment information:

Dependencies:
Xamarin.Forms 2.3.3.175

Versions:
Xamarin Studio 6.1.3

Build Settings (Release):
SDX version: 10.2
Linker behavior: Link Framework SDKs only
Supported Architecture: ARMv7 + ARM64
Use LLVM compiler: checked
Perform all 32-bit float operations as 64-bit float. : unchecked
Strip native debug symbols: checked
No incremental or device sepcific builds
Optimize PNG images: checked

LauncScreen.stroyboard
The LaunchScreen contains only one image at the center position
Can be Launch Screen: checked

info.plist:
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>

The thing is when I build and deploy the App AdHoc in release config it works. Just not when publishing the app to TestFlight and installing it from there.

Sorry for not being very responsive, I will try to setup a test project. For now, I switch to Launch Images.
Comment 4 veryhumble 2017-01-04 12:47:40 UTC
About the Effects I wrote initially.

This could be resolved with a static Init method and run it in the FinishedLaunching Method.


From a PlatformEffect Implementation:

public static void Init()
{
  #pragma warning disable 0219
  var dummy = new AddProgressBarEffect();
  #pragma warning restore 0219
}
Comment 5 Samantha Houts [MSFT] 2017-06-19 23:59:15 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!