From: William W. <flu...@gm...> - 2011-10-01 07:27:21
|
I went ahead and copied AndroidManifest.xml and the main.xml and strings.xml into the project resources manually and now I no longer have the previous issue. Instead I have the following errors: <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: id <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: array <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: dimen <I><Resources>: Unable to resolve resources for com.myproject.AndroidTestApp1: raw These four errors are then repeated one time. Unfortunately, I'm not sure what these errors mean, so I don't know where to go from here. On Sat, Oct 1, 2011 at 12:58 AM, William Wilson <flu...@gm...>wrote: > Unfortunately this doesn't seem to be working either. Creating a project > using the xmlvm android skeleton works but has the same problem - neither > the AndroidManifest.xml file nor any other resource exist anywhere in the > --out directory and are not referenced in the xcodeproj file or Makefile. > > As for the relative vs absolute path issue, I really don't think that is > the issue, else I would expect an error in the build phase in Xcode. I > looked in the generated xcodeproj and found no references to any kind of xml > file, whether relative or absolute paths. In any case doing my Android > development on the Mac is a non starter even if I did think it would work. > > Is there any way I can just add these resource files manually to the iPhone > project? The cross compilation part, which is what I am actually interested > in, is working fine. I just don't know where to put them. > > As an alternative, would it be possible for me to just cross-compile the > logic of my application and copy it into an ordinary iphone app, which I > could then invoke from my own Objective-C code? This way I would build the > UI again, but not the meat of the app, which would probably be fine - and > then I don't need to worry about the cocoa compatibility library. My app is > mostly networking and cryptography anyway, I can afford (and halfway expect) > to redo the UI. > > > On Fri, Sep 30, 2011 at 12:16 PM, Arno Puder <ar...@pu...> wrote: > >> >> that should work. There is probably a problem with --resource. I would >> suggest you let XMLVM generate an empty skeleton project: >> >> xmlvm --skeleton=android --out=OUTDIR --app-name=APPNAME >> >> and then edit it the way you need. >> >> Arno >> >> >> On 9/30/11 2:24 AM, William Wilson wrote: >> > Hello all, >> > I'm new to xmlvm and am running into a problem with my "hello world". >> > My goal is to cross compile Android applications to iPhone. Although I >> > don't think it matters, I'm running xmlvm on Linux and then copying the >> > generated projects to MacOS. >> > >> > I created my Hello World which is the same as the standard Google hello >> > world for Android - it simply defines the onCreate method with >> > setContentView(R.layout.main). There is a main.xml and a strings.xml >> > and also the AndroidManifest.xml that is always there. The app runs >> > fine on Google's Android simulator. >> > >> > I'm able to build my app in XCode and run it in XCode's iPhone >> > simulator, but it crashes on startup. The error displayed in the >> > debugger output is: >> > <E> <xmlvm>: Unable to locate AndroidManifest.xml file >> > >> > After some brief looking I see that the manifest, main and strings xml >> > files are not output into the generated xcode project. I've tried using >> > the --resource commandline option as well as the xmlvm.resource property >> > to try to specify that I want these files, but it doesn't seem to make >> > any difference. >> > >> > I've encountered the same problem with the files in the android demo >> > directory, or at least with afireworks, which is what I tried. >> > >> > Do I need to manually copy these resource files? If so, where shall I >> > put them? >> > >> > >> > >> ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously >> valuable. >> > Why? It contains a definitive record of application performance, >> security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2dcopy2 >> > >> > >> > >> > _______________________________________________ >> > xmlvm-users mailing list >> > xml...@li... >> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |