Oops, I had already answered but forgot the c.c. the list. Here was my answer (since it could help other people too).
> Hello Chuck, > > Are you linking in the simulator builds ? > > By default simulator builds do not use the linker (so the builds are > faster). The device builds defaults are to "Link SDK assemblies" to > make your app smaller (and also faster to build since AOing can be > slow). My guess is that you're missing a reference and that does not > show until the linker is involved (only in the device builds). You can > try disabling the linker on your device build to confirm this. > > If you're linking your simulator builds (and they work) then try to > compare your project settings (like defines) between your > Debug|Simulator and Debug|iPhone (or Release|*). Sebastien On Wed, Aug 24, 2011 at 6:05 PM, Jeff Stedfast <j...@xamarin.com> wrote: > Hi Chuck, > Did you ever figure this out? If not, I've added Sebastien to the Cc since > he's probably the best person to be able to answer this. > Jeff > > On Wed, Aug 17, 2011 at 8:42 AM, chuck <ch...@more-projects.de> wrote: >> >> Linking an app for the real iphone gives an error where there is no error >> linking for the simulator, any hints where to look? >> >> Chuck >> >> >> *Compiling to native code >> /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev >> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app" >> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.Monotouch.dll" >> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.ZLib.Monotouch.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.InternetPack.Monotouch.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/SBB-dlls/SecureBlackbox.XMLSecurity.dll" >> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" >> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" >> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.Charsets.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.PGP.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.XML.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MPWebCommon_iPhone02/MPWebCommon_iPhone/bin/Debug/MPWebCommon_iPhone.dll" >> >> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MyContractModelsLib_iPhone02/MyContractModelsLib_iPhone/bin/Debug/MyContractModelsLib_iPhone.dll" >> -debug -linksdkonly "-sdk=4.3" -v -v -v >> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe" >> Framework is: >> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk >> Copied >> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe >> to >> >> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app/MyContract24.exe >> Linking SDK only for assembly >> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe into >> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app >> Could not link assemblies: Mono.Linker.ResolutionException: Can not >> resolve >> reference: System.Boolean >> >> SBRDN.__Global::NonstrictCompareRDNAsStrings(SBRDN.TElRelativeDistinguishedName,SBRDN.TElRelativeDistinguishedName) >> at Mono.Linker.Steps.MarkStep.ResolveMethodDefinition >> (Mono.Cecil.MethodReference method) [0x00000] in <filename unknown>:0 >> at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference >> reference) [0x00000] in <filename unknown>:0 >> at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction >> instruction) [0x00000] in <filename unknown>:0 >> at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody >> body) [0x00000] in <filename unknown>:0 >> at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition >> method) [0x00000] in <filename unknown>:0 >> at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in <filename >> unknown>:0 >> at Mono.Linker.Steps.MarkStep.Process () [0x00000] in <filename >> unknown>:0 >> at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) >> [0x00000] in <filename unknown>:0 >> at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) >> [0x00000] >> in <filename unknown>:0 >> at MonoTouch.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, >> Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 * >> >> -- >> View this message in context: >> http://monotouch.2284126.n4.nabble.com/Linking-problem-target-iphone-tp3749838p3749838.html >> Sent from the MonoTouch mailing list archive at Nabble.com. >> _______________________________________________ >> MonoTouch mailing list >> MonoTouch@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/monotouch > > _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch