Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3629] Android base appcelerator app not running in Windows Phone

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-05-17T05:32:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSanchi Varma
AssigneeShak Hossain
Created2016-05-16T05:35:38.000+0000
Updated2016-05-17T05:32:29.000+0000

Description

I have made a mobile app in appcelerator currently for Andriod. I wish to run this on windows phone as well. To build this I use :
appc run -p windows --target wp-emulator --deploy-time development --device-id 8-1-1
And emulator : _Emulator 8.1 WVGA 4 inch_ Now, The project is build is successful. But the application instantly crashes as soon as it launches. Log :

[INFO]  Generating Native Type Wrappers
[INFO]  Setting up native modules for CMakeLists.txt...
[INFO]  Writing appxmanifest C:\Users\Neha\.titanium\vsbuild\MyTest\Package.store.appxmanifest.in
[INFO]  Writing appxmanifest C:\Users\Neha\.titanium\vsbuild\MyTest\Package.phone.appxmanifest.in
[INFO]  Writing appxmanifest C:\Users\Neha\.titanium\vsbuild\MyTest\Package.win10.appxmanifest.in
[INFO]  Writing CMakeLists.txt: C:\Users\Neha\.titanium\vsbuild\MyTest\CMakeLists.txt
[INFO]  Running cmake at C:\ProgramData\Titanium\mobilesdk\win32\5.2.2.GA\windows\cli\vendor\cmake\bin\cmake.exe in directory C:\Users\Neha\.titanium\vsbuild\MyTest\phone.x86
[INFO]  -- Found GTest: C:/Users/Neha/gtest/msvc/gtest-md/Debug/gtest.lib
[INFO]  -- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE)
[INFO]  -- Configuring done
[INFO]  -- Generating done
[INFO]  -- Build files have been written to: C:/Users/Neha/.titanium/vsbuild/MyTest/phone.x86
[INFO]  Running MSBuild on solution: C:\Users\Neha\.titanium\vsbuild\MyTest\phone.x86\MyTest.sln
[INFO]  Windows Phone emulator is ready
[INFO]  Writing build manifest: C:\Users\Neha\.titanium\vsbuild\MyTest\build-manifest.json
[INFO]  Copying results back to project build directory
[INFO]  Finished building the application in 2m 6s 959ms
[INFO]  Finished building the application in 2m 6s 959ms
[INFO]  Installing and launching the application
[INFO]  Project built successfully in 2m 6s 976ms

[INFO]  Connected to app
-- Start application log -----------------------------------------------------
[INFO]  Inside manahe view
[INFO]  End of manage view before open
[INFO]  End of manage view after open
[INFO]  Finished launching the application
[INFO]  Waiting for app to connect to log relay
[INFO]  Disconnected from app
-- End application log -------------------------------------------------------
Please help on how to build Windows phone app with android based appcelerator code using Alloy.

Comments

  1. Nazmus Salahin 2016-05-16

    Hello, Thanks for reporting. However it is not possible for us to identify the cause of the crash with so little information. Please give us some more info. Let us know if you are using any module in your project. Give us tiapp.xml file of your project if it is not inconvenient. If your can give us simple test case and step to reproduce it will be much more appreciated. Thanks in advance
  2. Sanchi Varma 2016-05-16

    TiApp.xml :
       <?xml version="1.0" encoding="UTF-8"?>
       <ti:app xmlns:ti="http://ti.appcelerator.org">
           <id>com.mytest</id>
           <name>MyTest</name>
           <version>1.0</version>
           <publisher>Test</publisher>
           <url/>
           <description/>
           <copyright>2016 by Test</copyright>
           <icon>appicon.png</icon>
           <fullscreen>false</fullscreen>
           <navbar-hidden>false</navbar-hidden>
           <analytics>true</analytics>
           <guid>12345678-1234-1234-1234-12345678910</guid>
           <property name="ti.ui.defaultunit" type="string">dp</property>
           <ios>
               <enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
               <plist>
                   <dict>
                       <key>UISupportedInterfaceOrientations~iphone</key>
                       <array>
                           <string>UIInterfaceOrientationPortrait</string>
                       </array>
                       <key>UISupportedInterfaceOrientations~ipad</key>
                       <array>
                           <string>UIInterfaceOrientationPortrait</string>
                           <string>UIInterfaceOrientationPortraitUpsideDown</string>
                           <string>UIInterfaceOrientationLandscapeLeft</string>
                           <string>UIInterfaceOrientationLandscapeRight</string>
                       </array>
                       <key>UIRequiresPersistentWiFi</key>
                       <false/>
                       <key>UIPrerenderedIcon</key>
                       <false/>
                       <key>UIStatusBarHidden</key>
                       <false/>
                       <key>UIStatusBarStyle</key>
                       <string>UIStatusBarStyleDefault</string>
                   </dict>
               </plist>
           </ios>
           <android xmlns:android="http://schemas.android.com/apk/res/android"/>
           <windows>
           	<manifest>
           		</manifest>
           </windows>
           <mobileweb>
               <precache/>
               <splash>
                   <enabled>true</enabled>
                   <inline-css-images>true</inline-css-images>
               </splash>
               <theme>default</theme>
           </mobileweb>
           <modules>
               <module platform="commonjs">ti.cloud</module>
           </modules>
           <deployment-targets>
               <target device="iphone">false</target>
               <target device="ipad">false</target>
               <target device="android">true</target>
               <target device="mobileweb">true</target>
               <target device="windows">true</target>
           </deployment-targets>
           <sdk-version>5.2.2.GA</sdk-version>
           <plugins>
               <plugin version="1.0">ti.alloy</plugin>
           </plugins>
           <property name="appc-app-id" type="string">12345678912356789123456789</property>
           <property name="acs-authbase-url-development" type="string">https://secure-identity.cloud.appcelerator.com<;/property>
           <property name="acs-base-url-development" type="string">https://api.cloud.appcelerator.com<;/property>
           <property name="acs-oauth-secret-development" type="string">12345678912356789123456789</property>
           <property name="acs-oauth-key-development" type="string">12345678912356789123456789</property>
           <property name="acs-api-key-development" type="string">12345678912356789123456789</property>
           <property name="acs-username-development" type="string">appc_app_user_dev</property>
           <property name="acs-password-development" type="string">12345678912356789123456789</property>
           <property name="acs-authbase-url-production" type="string">https://secure-identity.cloud.appcelerator.com<;/property>
           <property name="acs-base-url-production" type="string">https://api.cloud.appcelerator.com<;/property>
           <property name="acs-oauth-secret-production" type="string">12345678912356789123456789</property>
           <property name="acs-oauth-key-production" type="string">12345678912356789123456789</property>
           <property name="acs-api-key-production" type="string">12345678912356789123456789</property>
           <property name="acs-username-production" type="string">appc_app_user</property>
           <property name="acs-password-production" type="string">12345678912356789123456789</property>
           <property name="appc-org-id" type="string">1234567890</property>
           <property name="appc-creator-user-id" type="string">12345678-1234-1234-1234-12345678910123</property>
       </ti:app>
       
    Its a basic mobile app. Using *Alloy*, how can I build code base (currently written for android) in windows phone?
  3. Sanchi Varma 2016-05-16

    Hi, I was able to build this with certain modifications to the code. Thankyou.
  4. Nazmus Salahin 2016-05-17

    Hello [~sanchi1706@gmail.com], According to your last comment I assume that you have solved the issue. So I am closing the issue. Thanks for your cooperation

JSON Source