Web App Debugging (MAC) in iOS. MD

Source: Internet
Author: User

Directory

    • First, the real-machine coupling configuration
    • Second, the Safari configuration on Mac and the real-machine-linked tune
    • Third, iOS simulator use
    • Iv. installing the app in the iOS simulator

Recently, the company Vue Project Development, the purpose is a development, multi-platform release, which includes App,app using an offline Web solution, the Vue packaged JS bundle files, static resource files packaged into the app, in order to improve performance, optimize the experience, the app also through Jsbridge, Exposes the native interface to the Web call.

To this end, the Web app can be used in the development of Chrome and other PC simulator for debugging, but involves the application adaptation, especially the native interface debugging, it is more troublesome, must rely on the real machine, so that there is a way to do the real machine connection?

iphone connected to the Mac, Safari under the Mac can be very convenient for the real WebView Safari, app in the link.

First, the real-machine coupling configuration

on iphone settings:Safari settings, Advanced (bottom), such as open Web Inspector and JavaScript.

Connect to your Mac via a data cable, or share a hotspot between your phone or Mac (it's easy to use a data cable).

Second, the Safari configuration on Mac and the real-machine-linked tune

Configure Safari on your Mac, display the development menu in the menu bar, set these up, move your cursor to the Safari's development menu item, and see the web you're opening on your iphone (the app WebView is the same), for example, click on any item to go to debug, Debugging method and platform Web debugging is not bad.

Third, iOS simulator use

The above method is not only suitable for the real machine, but also for the Mac simulator, why there is a real machine-linked, I also want to use the simulator?

Recently experimental selection of Weex development (Weex is Ali launched, based on Vue front-end framework, the purpose is to develop through a single development, while building Web, Android and iOS applications, to achieve cross-platform development), it is a bit bold, directly with the current business to test the wrong, will be in, app, M site online.

Weex's pit is basically finished, back to the simulator, Weex does not support the partial properties of the package-webkit-, and the problem is found on iOS8. There is no iOS8 operating system in hand, it is convenient to use simulator here.

The default Mac already has Xcode installed and you can quickly find the iOS simulator (Simulator.app) by entering the SIM with Alfred.

Use Hardware->device to manage the corresponding iOS version. Next, go back to the second step to perform the simulator interlock.

Iv. installing the app in the iOS simulator

In addition to debugging the Web through the simulator, we can also install the app, do app WebView, Debug, iOS Simulator install app and real machine installation, simulator can only install the app bundle based on source code (find iOS development).

// 通过xcode提供的simctl命令进行安装/Applications/Xcode.app/Contents/Developer/usr/bin/simctl install booted EgretFly_InHouse.app

Web App Debugging (MAC) in iOS. MD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.