mateuszmackowiak / NativeDialogs

Adobe Air Native Extension for mobile native dialogs (IOS,Andoid) - Toast, Text Input dialog, Progress dialog, Alert dialog, multi single choice dialog + DatePicker dialog
147 stars 61 forks source link

AIR support 64 bit code #59

Open freddymx opened 9 years ago

freddymx commented 9 years ago

the extension needs to be compiled now for both arm7 and arm64 to be Universal.

Astraport commented 9 years ago

+1 Plz, build it.

rpurushotma commented 9 years ago

+1, this extension would need to be recompiled with the sdk at http://labs.adobe.com/downloads/air.html before it could be used

jalsed commented 9 years ago

+1, Need it urgently too. Please!

leossmith commented 9 years ago

+1 it would be awesome

jvMOONDA commented 9 years ago

+1 ! We also need it urgently for a commercial application.

shivanno commented 9 years ago

Please...i don't want buy a Macbook Pro to make this happen XD

Nestordu commented 9 years ago

+1

kheftel-old commented 9 years ago

Hi, I have an intel mac so I decided to try and compile it for 64-bit.

I had to set the target iOS verison to 6.0 to support 64-bit.

However, I wasn't able to figure it out. Here is some of the error output, if anyone is able to help:

The biggest culprit appears to be this line:

No architectures to compile for (ARCHS=i386 x86_64 armv7s, VALID_ARCHS=arm64

Here's some more debug output:

     [exec] ########### TESTS #############
     [exec] Use the following variables when debugging this script; note that they may change on recursions
     [exec] BUILD_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build
     [exec] BUILD_ROOT = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build
     [exec] CONFIGURATION_BUILD_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build/Release-iphoneos
     [exec] BUILT_PRODUCTS_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build/Release-iphoneos
     [exec] CONFIGURATION_TEMP_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build/Release-iphoneos
     [exec] TARGET_BUILD_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build/Release-iphoneos
     [exec] XCode has selected SDK: iphoneos with version: 8.1 (although back-targetting: 6.0)
     [exec] ...therefore, OTHER_SDK_TO_BUILD = iphonesimulator8.1
     [exec] xcodebuild -project "/Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/NativeDialogs.xcodeproj" -configuration "Release" -target "NativeDialogs" -sdk "iphonesimulator8.1" build RUN_CLANG_STATIC_ANALYZER=NO BUILD_DIR="/Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build" BUILD_ROOT="/Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build" CALLED_FROM_MASTER=1
     [exec] Build settings from command line:
     [exec]     BUILD_DIR = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build
     [exec]     BUILD_ROOT = /Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/IOS/NativeDialogs/build
     [exec]     CALLED_FROM_MASTER = 1
     [exec]     RUN_CLANG_STATIC_ANALYZER = NO
     [exec]     SDKROOT = iphonesimulator8.1
     [exec] 
     [exec] === BUILD TARGET NativeDialogs OF PROJECT NativeDialogs WITH CONFIGURATION Release ===
     [exec] 
     [exec] Check dependencies
     [exec] No architectures to compile for (ARCHS=i386 x86_64 armv7s, VALID_ARCHS=arm64 armv7).
     [exec] 
     [exec] ** BUILD FAILED **
     [exec] 
     [exec] 
     [exec] The following build commands failed:
     [exec]     Check dependencies
     [exec] (1 failure)
     [exec] Command /bin/sh failed with exit code 65
     [exec] 
     [exec] ** BUILD FAILED **
     [exec] 
     [exec] 
     [exec] The following build commands failed:
     [exec]     PhaseScriptExecution Run\ Script build/Release-iphoneos/NativeDialogs.build/Script-9A0396F316BD905700445AD1.sh
     [exec] (1 failure)

BUILD FAILED
/Users/kawika/Documents/Adobe Flash Builder 4.7/devlib/ane/NativeDialogs-master/build.xml:27: exec returned: 65
leossmith commented 9 years ago

well i actually did run the build without this error. however i get an error that the xproj does not exist and the build fails. If i can get around this, we will have a compile!

leossmith commented 9 years ago

just tried this one https://github.com/plepers/NativeDialogs/tree/CC3D and it compiled ok. i am testing right now. it looks ok on android with air 16

mattmurton commented 9 years ago

I've issued a pull request with this fixed. #61 . Let me know if anyone has any issued with it.

PierBover commented 9 years ago

Thanks @mattmurton !

It worked perfectly for me

leossmith commented 9 years ago

:+1: works great

colouredFunk commented 9 years ago

Does anyone know if this has been resolved?

grabowski-robert commented 9 years ago

@mattmurton It's not working for me. The dialogs don't show up. Test on iPad iOS 8.2, 8.3, AIR SDK 16, 17.

leossmith commented 9 years ago

same problem. stopped working on 8.3 and air 17 and 18

leossmith commented 9 years ago

@mattmurton can you recompile with the latest sdk to see if that solves the problem?

Lydecker commented 9 years ago

Agreed, mattmurton's recompile unfortunatly does not work with air 17, air 16. It's an adobe SDK thing (have it working on iOS8.3 and air 15) - since from air 16 onwards they needed the 64 shizzle. (You can still compile for 8.3 on air 15 if you're not distributing through the app store but doing ad hoc - and in that case it still works).

Would be nice to see an air 16/17/18 working version... cheers

JanFW commented 9 years ago

Any clues what may cause this issue or how Adobe could fix it? This is surely one of the best ANE's I've come across and it would be pretty sad if it wouldn't be available in the future any longer

mattmurton commented 9 years ago

Hi all, I've just compiled everything again making sure to use the 64 bit architecture for the ios build and well as targeting AIR 16 for all actionscript and the ANE compilation. Hopefully that will be enough to get it working again. I haven’t/can’t test it right now so if someone could let me know if its looking good that would be great. New files are on my forked branch https://github.com/mattmurton/NativeDialogs.

JanFW commented 9 years ago

I tested your new ANE with the latest AIR build (v18.0) on iPad Air 2 with iOS 8.3 but the Dialogs do not show up. I tried to show a dialog using "NativeAlertDialog.showAlert(...". However, I do see a trace appearing stating "Disposing on dispose()". Funny thing is that it automatically calls the callback function with the value of the first button (event.index = 0). E.g. a YES/NO prompt will automatically trigger "Yes"

kingnare commented 9 years ago

Not working on ipad 4 or ipad air ios8 + adobe air 18

jjanusch commented 9 years ago

@mattmurton To get yours to compile, I had to compile with -swf-version=27, in case anyone has similar issues

I'm using: iOS 8.2 iPad 3 AIR 18 Flex 13

vorlovsky commented 9 years ago

@mattmurton It compiles and runs well on iOS for me exept for the date picker - it claims it shows, but it's not visible.(

drunkcat commented 8 years ago

anyone got it working? @JanFW I have the same issue, were you able to solve this problem?

JanFW commented 8 years ago

@drunkcat: Sorry, it seems as if the project has become deprecated.

esdebon commented 8 years ago

Here my version compiled to 64 bits https://github.com/esdebon/NativeDialogs