{"action":"created","issue":{"url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/211","labels_url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/211/comments","events_url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/211/events","html_url":"https://github.com/freshplanet/ANE-Facebook/issues/211","id":88229811,"number":211,"title":"Build ANE from source, it references the original source files at runtime","user":{"login":"jacobholm","id":1675799,"avatar_url":"https://avatars.githubusercontent.com/u/1675799?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobholm","html_url":"https://github.com/jacobholm","followers_url":"https://api.github.com/users/jacobholm/followers","following_url":"https://api.github.com/users/jacobholm/following{/other_user}","gists_url":"https://api.github.com/users/jacobholm/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobholm/subscriptions","organizations_url":"https://api.github.com/users/jacobholm/orgs","repos_url":"https://api.github.com/users/jacobholm/repos","events_url":"https://api.github.com/users/jacobholm/events{/privacy}","received_events_url":"https://api.github.com/users/jacobholm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-14T18:43:54Z","updated_at":"2015-08-02T19:33:32Z","closed_at":"2015-08-02T19:33:32Z","body":"Hi,\r\n\r\nI use the included build script and build using ant. The ane is built, I copy it to my project and include it as a native extension. Everything builds and looks good, but when I run the application I can see that it references the original source files. This is what I get when I try to initialize the library using Facebook.getInstance().init()\r\n\r\nTypeError: Error #1009: Cannot access a property or method of a null object reference.\r\n\tat com.freshplanet.ane.AirFacebook::Facebook/init()[D:\\ANE-Facebook-master\\actionscript\\src\\com\\freshplanet\\ane\\AirFacebook\\Facebook.as:108]\r\n\r\nHave I forgotten some setting or parameter somewhere telling it to use the source of the ANE and not the original files?\r\n\r\nRegards,\r\nJacob"},"comment":{"url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/comments/127059780","html_url":"https://github.com/freshplanet/ANE-Facebook/issues/211#issuecomment-127059780","issue_url":"https://api.github.com/repos/freshplanet/ANE-Facebook/issues/211","id":127059780,"user":{"login":"jacobholm","id":1675799,"avatar_url":"https://avatars.githubusercontent.com/u/1675799?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobholm","html_url":"https://github.com/jacobholm","followers_url":"https://api.github.com/users/jacobholm/followers","following_url":"https://api.github.com/users/jacobholm/following{/other_user}","gists_url":"https://api.github.com/users/jacobholm/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobholm/subscriptions","organizations_url":"https://api.github.com/users/jacobholm/orgs","repos_url":"https://api.github.com/users/jacobholm/repos","events_url":"https://api.github.com/users/jacobholm/events{/privacy}","received_events_url":"https://api.github.com/users/jacobholm/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T19:33:32Z","updated_at":"2015-08-02T19:33:32Z","body":"I managed to solve the issue. Forgot exactly how I ran the script, but when I tried today I got it working. I did the following changes:\r\n\r\n**build.config**\r\nI set \"bin.ext = .exe\".\r\n\r\n**extension.xml**\r\nI removed \"platform name=\"iPhone-ARM\"\" and its content (I am building for android).\r\n\r\n**build.xml**\r\nI removed \"ios\" from the depends attribute in the \"target name=\"all\" depends=\"android,swc,package\" description=\"Full build of extension\"/\" tag.\r\nThen I added \"${bin.ext}\" to \"exec executable=\"${flex.sdk}/lib/android/bin/aapt${bin.ext}\"\" as it was missing. Without this the \".exe\" I set in build.config have no effect.\r\nI also had to add \".bat\" to the \"<exec executable=\"${flex.sdk}/bin/adt.bat\"\" under the package target tab. It seems this particular one did not want to run as an exe.\r\n\r\nAfter these changes the ANE built succesfully and was placed in the bin folder. Maybe this helps someone else."}}