Disable modules and force category references

Modules do not work well without frameworks.
This commit is contained in:
Jonathan Schleifer 2017-10-16 00:36:46 +02:00
parent 1ff08de875
commit b87b2e8037
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
9 changed files with 21 additions and 21 deletions

View file

@ -20,8 +20,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#import <UIKit/UIKit.h>
#import <ObjFW/ObjFW.h>
@import UIKit;
#import <ObjFW_Bridge/ObjFW_Bridge.h>
#import "AppDelegate.h"
@ -30,6 +31,14 @@
OF_APPLICATION_DELEGATE(OFAppDelegate)
void
_references_to_categories_of_ObjFW_Bridge(void)
{
_NSString_OFObject_reference = 1;
_OFArray_NSObject_reference = 1;
_OFString_NSObject_reference = 1;
}
@implementation OFAppDelegate
- (void)applicationDidFinishLaunching
{