Can't load ANEs on mobile project
See original GitHub issueHi, brand new to the extension in vscode and migrating from IntelliJ. I think I might not be understanding how to get my ANEs to be found by my debug build. What I am trying to do is run the (Launch SWF) debug task to debug my mobile application in the IOS simulator. My anes are in a “anes” folder in my project’s root folder, which also contains my .code-workspace
file. Here’s what I have so far:
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "swf",
"request": "launch",
"name": "Launch SWF",
"preLaunchTask": "build-debug",
"profile": "mobileDevice",
"screensize": "iPhone6Plus",
"screenDPI": 401,
"versionPlatform": "IOS",
"extdir": "${workspaceRoot}/anes"
},
{
"type": "swf",
"request": "attach",
"name": "Attach SWF"
}
]
}
tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"identifier": "build-debug",
"type": "actionscript",
"debug": true,
"problemMatcher": [
"$nextgenas_nomatch"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
asconfig.json (all paths relative to root folder)
{
"config": "airmobile",
"compilerOptions": {
"output": "out/app.swf",
"library-path": [
"libs",
"anes"
]
},
"application": "src/Sports App-app.xml",
"files":
[
"src/Main.as"
],
"airOptions": {
"android": {
"extdir": [
"./anes"
],
"output": "out/Main.apk",
"signingOptions": {
"storetype": "pkcs12",
"keystore": "android_certificate.p12"
}
},
"ios": {
"extdir": [
"./anes"
],
"output": "out/Main.ipa",
"signingOptions": {
"storetype": "pkcs12",
"keystore": "ios_certificate.p12",
"providerName": "path/to/file.mobileprovision"
}
}
}
}
With these configurations in place, I hit play on the Launch SWF debug config, and I get the following error:
Process terminated without establishing connection to debugger.
The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.milkmangames.extensions.GoViral could not be found.
I have confirmed the com.milkmangames.extensions.GoViral.ane
file is inside the anes
folder. Here is a screenshot of my folder structure:
Am I doing something wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:29 (15 by maintainers)
Top Results From Across the Web
FAQ - ANES - American National Election Studies
Does ANES have polling data? No, ANES conducts scientific surveys to ... Can I analyze ANES data online? Some ANES studies are available...
Read more >Distriqt ANE Crashes When Using Adobe Air Sdk 15.0
Right click - in your project · Choose Properties · Select - Flex Build Path in left side menu. · Choose - Native...
Read more >how to fix Android Studio Error Cannot load project by ts tech ...
Error loading project in Android Studio: cannot load modules, Android Studio error: Cannot load project, Cannot load Android Project.
Read more >EM 385-1-1 30 Nov 14 27-i Section 27 TABLE OF CONTENTS ...
Riding on concrete buckets or other suspended loads shall be prohibited. 27.A.04 Based on hazard evaluations conducted by supervisors, employers ...
Read more >Mobile Cricothyrotomy Simulation Cart Improves Anesthesia ...
Cricothyrotomy is an invasive airway used in “cannot intubate, cannot ventilate” events and can be taught using simulation. A mobile cricothyrotomy ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
EDIT (2019/11/08): You should never need to set
extdir
in launch.json anymore. ANEs are now automatically unpackaged, and this field is populated automatically. This advice was for an older version of vscode-as3mxml.I don’t have experience with ANEs, but this is how they work, as I understand it.
The compile the SWF and for code intelligence, you should add your original, unextracted .ane files to the
library-path
field in thecompilerOptions
section of asconfig.json. The way that I understand it, they are treated like .swc files.For packaging your AIR app, you should add the folder containing your original unextracted .ane files in the
extdir
field in theairOptions
section of asconfig.json.For debugging, you must extract the .ane files. As I understand it, a special naming convention is required. I think the new folder needs to have the same name as the original file (including the .ane file extension!). You add the parent folder of all of the unextracted ANEs to the
extdir
field of launch.json.If anyone sees that I got anything wrong, please let me know.
I don’t have extdir in launch.json
https://imgur.com/a/ItI5NZd