HaxeExtension / extension-iap

Support for In-App Purchase
Other
70 stars 46 forks source link

Cannot build for iOS #44

Open Tiago-Ling opened 8 years ago

Tiago-Ling commented 8 years ago

Using: Haxe 3.3.0 Lime 2.9.1 OpenFL 3.6.1 (next)

Looks like the library is not working for non-legacy iOS projects. The following error happens when trying to build:

/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:364: characters 39-47 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:355: characters 43-51 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:358: characters 41-49 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:357: characters 36-44 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:356: characters 40-48 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:359: characters 51-59 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:363: characters 40-48 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:361: characters 58-66 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:362: characters 58-66 : Class<openfl.Lib> has no field load
/usr/local/lib/haxe/lib/extension-iap/1,2,0/extension/iap/ios/IAP.hx:360: characters 39-47 : Class<openfl.Lib> has no field load

Any known workarounds? Thanks!

Tiago-Ling commented 8 years ago

Looks like this is only a matter of substituting flash.Lib for lime.system.CFFI.

I'm gonna test it here and make the PR if it works correctly.