Bug 21134 - Linker in 7.2.6 includes a reference to all frameworks mentioned in mountouch even with the Link All/SDK settings
Summary: Linker in 7.2.6 includes a reference to all frameworks mentioned in mountouch...
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 7.2.6
Hardware: PC Mac OS
: --- normal
Target Milestone: 7.2.6
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-04 19:07 UTC by T.J. Purtell
Modified: 2014-07-21 15:20 UTC (History)
3 users (show)

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


Attachments
otool output showing extra frameworks (9.49 KB, text/plain)
2014-07-04 19:08 UTC, T.J. Purtell
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:
VERIFIED FIXED

Description T.J. Purtell 2014-07-04 19:07:54 UTC
The attached file shows two otool -L outputs.  The first is for a the project compiled with 7.2.6 alpha, the second is for the project compiled with 7.2.5.5 beta.  The version compiled with 7.2.6 includes references to pretty much every iOS framework including disallowed private ones.  The binary size is very close, so it seems to be a weird linker issue.

> -rwxr-xr-x@ 1 tj  staff  26512784 Jul  4 13:46 AppIOS-414/Payload/AppiOS.app/AppIOS
> -rwxr-xr-x@ 1 tj  staff  26311536 Jun 30 12:26 AppIOS-411/Payload/AppiOS.app/AppIOS
Comment 1 T.J. Purtell 2014-07-04 19:08:23 UTC
Created attachment 7276 [details]
otool output showing extra frameworks
Comment 2 Sebastien Pouliot 2014-07-07 09:02:14 UTC
Fix backported to monotouch-7.2.6-branch 284116641a5b1e7093f7bc77962f4d5e65015539
Comment 3 Mohit Kheterpal 2014-07-21 13:41:56 UTC
I have tried to reproduce this issue but I am not sure about the steps. Could you please provide some steps to verify this issue?

Thsnks.
Comment 4 Mohit Kheterpal 2014-07-21 15:20:55 UTC
I have checked this issue via using otool -L command and I am getting similar output with X.iOS 7.2.6.24 and with x.iOS 7.2.5.5

Output of X.iOS 7.2.6 : 

360Logicas-Mac-mini:gennext.app 360logicaxamarinmacmini$ otool -L gennext
gennext:
	/System/Library/Frameworks/CFNetwork.framework/CFNetwork (compatibility version 1.0.0, current version 672.1.13)
	/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1047.25.0)
	/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
	/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 2935.137.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1198.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 847.24.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
360Logicas-Mac-mini:gennext.app 360logicaxamarinmacmini$


Ouput of X.iOS 7.2.5.5 :

360Logicas-Mac-mini:gennext.app 360logicaxamarinmacmini$ otool -L gennext
gennext:
	/System/Library/Frameworks/CFNetwork.framework/CFNetwork (compatibility version 1.0.0, current version 672.1.13)
	/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1047.25.0)
	/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
	/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 2935.137.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1198.0.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 847.24.0)
360Logicas-Mac-mini:gennext.app 360logicaxamarinmacmini$ 

Hence closing this issue.