You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/25 12:52:49 UTC

[GitHub] [cordova] flavioeverardo opened a new issue #100: No native Web Assembly (wasm) support detected in Cordova app

flavioeverardo opened a new issue #100: No native Web Assembly (wasm) support detected in Cordova app
URL: https://github.com/apache/cordova/issues/100
 
 
   # Bug Report
   
   ## Problem
   
   Cordova is running my application normally when the target is a browser but no native wasm support is detected when the target is iOS. Despite currently this is an iOS bug/problem, I'm reporting this here because I expect to further deploy the application to Android hoping that the same solution fits both.
   
   ### What is expected to happen?
   You can try the application hosted on my server http://www.flavioeverardo.com/clingo/ where with a simple click on the run button, the Answer Set Programming (ASP) solver 'clingo' (which was compiled into wasm) solves the given problem.
   
   A normal output would be something like this:
   ```
   clingo version 5.3.1
   Reading from stdin
   Solving...
   Answer: 1
   motive(harry) motive(sally) guilty(harry) innocent(sally)
   SATISFIABLE
   
   Models       : 1
   Calls        : 1
   Time         : 0.001s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s)
   CPU Time     : 0.000s
   ```
   
   As mentioned before, running the same files locally when targeting the browser in cordova, gives a similar output as the one shown above. Everything works fine on browsers like Firefox, Chrome or Safari. You can also run the application from the link above in your phone browsers normally.
   
   ### What does actually happen?
   
   When targeting into iOS (and I guess the same happens with Android but I have not tried it yet), the run button is disabled because all the dependencies are not fully loaded. The message shown is:
   ```
   no native wasm support detected
   ```
   I have tried it in the simulator running an iPhone 6s as well as in my iPhone (which is also an iPhone 6s) running iOS 12.2. I tried different simulators and deployment targets from 9.3 to 12.1 without success including physical devices.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   It works with: ```cordova run browser --target=Firefox/Chrome```
   It does not work with ```cordova run ios [--target="iPhone-6s]"```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   ```
   $ cordova platform ls
   Installed platforms:
     browser 6.0.0
     ios 5.0.1
   ```
   
   No plugins installed/used.
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Running macOS High Sierra version 10.13.6
   
   Currently I cannot think on any other relevant feature to include here but if you need additional information, let me know. 
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org