can we use appcelerator titanium liveview in iOS devices? - ios

I tried to run my app in live view mode on an iPhone device from appcelerator studio and get the error :
[LiveView] File Server unavailable. Host Unreachable # 192.168.1.122:8324
[LiveView]Please ensure your device and computer are on the same network and the port is not blocked.
conditions :
1. Device : iPhone 5S with IOS 9.2.1
2. Titanium SDK 5.1.1.GA
3. Firewall off and connected to the same wifi
4. xcode 7.2
5. Appcelerator Studio 4.4.0
6. Latest appcelerator CLI
can't we use live view when deploying to iOS device?
nb : it works when i use iOS simulator and android devices

I just looked through the LiveView code and confirmed this issue happens when the LiveView code inside your iOS app can't see the LiveView server running on your computer. You claim that both your computer and your device are on the same network and the firewall is off. I suppose the next thing to check is the LiveView server even running?
LiveView lives inside the Appcelerator Studio directory. On my machine it's located at /Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865.
You can manually check the server status by running:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server status
There's actually a couple other subcommands you can pass in: start, stop, and restart. If the status command above says that the server is running, stop it using:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server stop
Build your app again and Studio will start the LiveView server again and hopefully this time it works. I don't think you need to manually start the LiveView server. I'm not even sure if that would work.
I hope that fixes your problem.

Related

React Native iOS could not connect to development server

I get the common Could not connect to development server error described in e.g. React-native iOS: Could not connect to development server. Things that are working:
My iOS device is built fine using Xcode and launching
The URL inside the app shows correctly (192.168.4.59:8082/index.bundle?platform=iOS&dev=true) and opening that URL in the browser loads the bundle as it should
The phone and laptop are on the same wifi
Killed node process and restarted npm with --reset-cache
Restarted xcode, iphone and computer (many times)
What might I be doing wrong?
It worked to use a USB cable instead of wifi and untick "Connect via Network" in Xcode > Devices And Simulators window.

Connecting to OpenVPN server using iOS 13.3 does not work as it used to

I have iOS ver. 13.3 installed on my iPhone X. I also have an OpenVPN server configured at home that can be reached from the Internet. I also have the latest OpenVPN Connect app installed on my iPhone. When I open OpenVPN Connect application and click on the profile, I connect within a 2-3 seconds. This is all fine.
However, if I go to iPhone settings > VPN and change the status switch, the status immediately shows up as green (connected), even though it is not connected. When I open OpenVPN connect app, I see that it's trying to connect, but it fails. If I again request connection from within the app, it will connect properly.
This hasn't been like this before. The iOS VPN switch used to work. I have a feeling that it changed around iOS ver. 12, but I am not sure.
Has anyone else experienced this problem or has an idea how I can debug it/solve it?

visual studio 2017 cordova ios debug in local device failed

This is link of the same problem I raised in Visual Studio Developer support portal.
https://developercommunity.visualstudio.com/content/problem/61875/visual-studio-2017-cordova-ios-debug-on-local-devi.html
I am trying to debug cordova app in iPhone 5s local device connected to my laptop.
visual studio 2017 cordova 7.0.1 xcode 8.3.1 ios 10.2.1
After build it is failing at deployment.
build successful but failing to deploy to IOS device.
it is bringing up itunes and then shows the app there and device is identified but says error occured continue or not? and fails.
Earlier I deployed and several times debugged directly with local device.
one error result states, version mismatch other says device may not be connected and awake.
I am using ipod 9.3 version ios and another one iphone 5s with 10.2.1 ios.
I am building apache cordova app in visual studio 2017 with macincloud remotebuild.
how to resolve this!? any hint is a big help!!
I am manually deploying but can't debug. now,
i am getting network error at xmlhttprequest in device and but same code working fine in simulator.
when press device button then and i restart app then it is dumping a big error message and showing exitapp though i am not using any of that plugin or code line.
how to debug on device is first priority which may help to resolve rest.
1>Time Elapsed 00:05:02.04 2>------ Deploy started: Project: BlankCordovaApp2, Configuration: Debug iOS ------ 2>Found iTunes version: 12.3.2.35 2>Uninstalling app ID: COM.appanem.appanem. 2>Successfully installed .ipa file: C:\Users\Ekambarrao\documents\visual studio 2017\Projects\BlankCordovaApp2\BlankCordovaApp2\bin\iOS\Debug\appanem.ipa. 2>Starting idevicedebugserverproxy.exe at port 3000. 2>Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked. 2>Starting ios_webkit_debug_proxy.exe at port 9221. 2>Deployment failed.
Is everybody happily working with this latest releases of Cordova IOS xcode vs 2017 or everybody facing the same problem as I am?
Issue is resolved, I am able to debug after I built my own VM of IOS and then debug but not sure what really resolved this.
What I can make out is,
unlike earlier, (not sure correct or wrong because this I could not do when I was using macincloud),
now the provisional profile need to be tagged to even device for debugging which was earlier sufficient to just list the device uuid in store certificates and profiles section.

Launch failed. The app could not be launched on xamarin

I am getting the following error when trying to run Visual Studio/Xamarin built application on the IOS Simulator.
Launch failed. The app 'App2' could not be launched on 'iPhone 7 Plus iOS 10.1'. Please check the logs for more details.
"App2" was created using the Tab Template, and NO code changes after rolling the application.
Windows environment: Windows 10 w/Visual Studio 2015 update 2
Mac environment: IMac Sierra fully patched. XCode 8.1 (what ever is most up to date).
I have connected the mac remote and pc. I can launch the iPhone simulator on the mac from Visual studio on the PC.
I get the error when trying to run "App2". It compiles fine, just won't run on the simulator.
I've searched here, and similar results speak of VS Crashing. Mine doesn't crash, just presents the error. NOTE: There's nothing in any log I can find with details by the way.
Ideas? Thanks!
EDIT: Just loaded up Parallels on the IMac and ran Win 10/VStudio. I get the same error. Again, xamarin remote agent connected and I can start the simulator from the PC, i just can't deploy to it.
After all the research and help from those here it comes down to a bug with the current version of Xamarin. Options are to wait until a new stable build is on the Xamarin site or get builds off of GIT. I'm choosing to wait, as I've not had great luck working with interim builds.
Xamarin that downloads with the new VS 2017 fixes this bug.

Visual Studio 2015 hangs on deploying cordova application

I'm trying to build a blank cordova application into my iPad Air 2 with Visual Studio 2015 Enterprise edition as i've already done it with success with the release candidate version.
I've got node.js v 4.2.2 on both machines since version 5.2.0 was hanging the build indefinitely, i've also got latest version of iTunes (12.3.1) as well as iOS 9.2 on the mobile device.
I've got the remote MAC set up and everything works fine for the building part, infact i've checked and the .ipa file is there at the end of the build into the folder ...\Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug and if i launch that it will correctly install into iTunes and the iPad itself.
The problem is that the build action with Configuration "iOS" and "Local Device" with the iPad connected to the windows 7 PC will hang indefinitely after copying back said .ipa file after writing this line into the Build Output:
2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug iOS ------
No matter how much time i wait it wont start the debug session even if i authorized the pc onto the iPad and have my web Inspector turned on onto the safari options. At this point i have to interrupt the build to be able to work again.
What really gets me is that if i connect the iPad to the MAC machine and build with "Remote Device" option the build works fine and i can debug remotely from my windows pc, unfortunately working like that isn't an option since the Apple machine isn't in the same room of my developing machine.
Any insight about this issue would be really appreciate, thanks in advance.
You are using a recent version of node and thus will also need to use a recent version of Cordova.
Specifically, you need to use Cordova 5.3.3 to be able to use Node.js 4.x.x+. The hang you are experiencing is exactly why. It's an incompatibility with a down stream node module and Node 4.x.x. You can downgrade to Node 0.12.x or upgrade your Cordova project to 5.3.3.
http://cordova.apache.org/news/2015/09/22/tools-release.html
Note that Node 5.x.x is only supported in Cordova 5.4.1.
This should be addressed in the latest VS Tools for Cordova Update 6. Deploying to local device is now available.
Take a look at http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html.

Resources