other lin...">

How to set -ObjC -all_load flag when creating for ios

I want to set the flag "-ObjC -all_load", as I set in xcode (under build-settings-> other linker flags)

to access iOS applications to work with the applicationasa iOS framework. But what am I doing in the xcode project, it seems that the flag is ignored by air

So how to set this flag in the air? A.

(note: its configuration is not info.plist, its configuration configuration of the assembly)

+4
source share
1 answer

Try the following two:

1) when choosing the .a target extension in xcode, go to other linker flags and add -ObjC, then export .a

2) in the iOS-Platform.xml file under linkerOptions add

 <option>-ObjC</option> 
0
source

All Articles