I'm trying to make a c# binding for "iCarousel" objective-c library. I've created a new target "Cocoa Touch Static Library" for the Xcode project and i've created the static libraries after that using the tutorial commands:
/Developer/usr/bin/xcodebuild -project iCarousel.xcodeproj -target libiCarousel -sdk iphonesimulator -configuration Release clean build /Developer/usr/bin/xcodebuild -project iCarousel.xcodeproj -target libiCarousel -sdk iphoneos -arch armv6 -configuration Release clean build /Developer/usr/bin/xcodebuild -project iCarousel.xcodeproj -target libiCarousel -sdk iphoneos -arch armv7 -configuration Release clean build lipo -create -output libiCarousel.a libiCarousel-i386.a libiCarousel-armv6.a libiCarousel-armv7.a Everything worked like a charm for now. After that I've created a new monotouch binding project, include the "fat" static library, generated a dll using the new LinkWith attribute and everything it's working fine on the simulator and on my iPad with iOS 5.0. The problem only appears on my old iPhone 3g with iOS 4.1 installed. The sample I've made doesn't run and the debugger returns this strange error: dyld: lazy symbol binding failed: Symbol not found: _objc_retainAutoreleasedReturnValue Referenced from: /var/mobile/Applications/8160D667-16EF-45F7-9658-A096AD421A21/Sample.app/Sample Expected in: /usr/lib/libobjc.A.dylib dyld: Symbol not found: _objc_retainAutoreleasedReturnValue Referenced from: /var/mobile/Applications/8160D667-16EF-45F7-9658-A096AD421A21/Sample.app/Sample Expected in: /usr/lib/libobjc.A.dylib I'm almost sure it's an error on my Xcode project properties and with ARMv6 and ARMv7 settings but I don't know how to handle it. I've used LinkWith like this: [assembly: LinkWith ("libiCarousel.a", LinkTarget.Simulator | LinkTarget.ArmV6 | LinkTarget.ArmV7, ForceLoad = true, Frameworks="CoreGraphics QuartzCore UIKit")] Also I noticed that my build it's working ONLY on iOS 5... -- View this message in context: http://monotouch.2284126.n4.nabble.com/Cannot-use-a-native-library-in-monotouch-tp4339336p4339336.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