Google says:

http://stackoverflow.com/questions/4676257/trying-to-link-static-lib-in-monotouch-get-error-you-should-provide-one-root

http://stackoverflow.com/questions/6893830/error-when-trying-to-deploy-monotouch-app-to-iphone



basically, they had:

-gcc_flags "-ltest"

and they changed it to

-gcc_flags "-L${ProjectDir} -ltest -force_load ${ProjectDir}/libtest.a"

I'm not sure what the equivalent is with the new LinkWith attributes
tho. And I suspect your xcode library isn't called "libtest.a" :)

And in the second case, one of the items didn't have a - infront, eg:

-gcc_flags "-L${ProjectDir} ltest -force_load ${ProjectDir}/libtest.a"

(note the - missing in front of ltest)

What does your mtouch arguments look like now?


On Mon, Jun 25, 2012 at 9:55 AM, ZNNXL <[email protected]> wrote:
> I get now a new error :(
>
>
> Build complete -- 0 errors, 20 warnings
>
> Compiling to native code
> /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Developer" -v --nomanifest
> --nosign -dev "/Users/pos/Desktop/MONOTOUCH
> BINDING/VPC_MonoTouch/Xamarin.XMBindingLibrarySample/Xamarin.XMBindingLibrarySample/bin/iPhone/Release/XamarinXMBindingLibrarySample.app"
> -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -r
> "/Developer/MonoTouch/usr/lib/mono/2.1/MonoTouch.Dialog-1.dll" -r
> "/Users/pos/Desktop/MONOTOUCH
> BINDING/VPC_MonoTouch/NextFrameWorkBindingLibrary.dll" -linksdkonly -sdk
> "5.1" -targetver "5.1" --armv7 "-gcc_flags=-framework CoreGraphics
> -framework SystemConfiguration -framework MediaPlayer -framework
> AudioToolbox -framework CFNetwork
> -framework CoreLocation -framework StoreKit" "/Users/pos/Desktop/MONOTOUCH
> BINDING/VPC_MonoTouch/Xamarin.XMBindingLibrarySample/Xamarin.XMBindingLibrarySample/bin/iPhone/Release/XamarinXMBindingLibrarySample.exe"
> MonoTouch version 5.2.12 using framework:
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
> Error: You should provide one root assembly only
> mtouch exited with code 1
>
>
> anz idea what can i do?
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/ERROR-Build-as-Release-tp4655516p4655559.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to