How to get LOG when install ios app? - ios

I trying use Over The Air (OTA) iOS IPA File Distribution to install IPA file for iphone but it have error.
So that I need get log from when I click the install link to the dialog error show.
Please show me the tool or a method to get log install.

System logs show info about installation process. To see operating system logs from device you should connect you iphone/ipad to your computer. Then choose in XCode Window > Devices, and select you connected device from list on the left. If console with logs is hidden you can open it by clicking this icon:

Related

AppBox - Unable to Install "YourApp" Please try again later

On the macbook I exported a successfully tested app from Xcode 11.4 and dropped the .ipa file in AppBox. Appbox then gives you a link.Then I emailed the link to myself, clicked the link in Safari on my iPhone 7, tapped Install Application and got ‘“dl.dropbox.com” would like to install “News”’. I tapped Install.
It created the News app on the phone, but when I tap, I get "Unable to Install “News” Please try again later.
The I tried Diawi. Same result as AppBox.
Open the Diawi installation link in the browser.
There you can see that provisioning profile section.
Under that section check your iPhone on which you want to install the app it UDID is present or not?

Read a iPhone log file content from Mac

How can I read a iPhone log file content from Mac?
I wanna read /Library/Caches/swiftybeaver.log in iPhone from my Macbook. The file log is generated by SwiftyBeaver
Connect your iPhone to your mac.
Open XCODE then select Devices and Simulators from Window Menu
Select your Application Package
Click on COG(Setting icon) and select download container
Save the file on Desktop or anywhere you want.
right click on downloaded file and select show package content
Access your log :)
for ref:

How can I debug an iOS app executed in mobile not launched by Xcode?

I am developing an application for iOS in Objective C with Xcode. This application schedules local push notifications every 6 hours and it is crashing when I open the push notifications.
I need to debug the error to solve it. I can have the mobile connected to Xcode, but as the app is executed from local push notification I can't see the error messages on my Xcode debug console, as I haven't launched my app from Xcode.
Is there a way to have the iOS device connected to my Mac and see what error is happening?
I know that I can go to the mobile settings to view logs, but these logs are too ambigous for me aren't giving any error.
In addition to opening the console log as described by #saurabhgoyal you can tell Xcode to wait for your app to launch and then attach the debugger to it when it does.
Select the scheme you're using to build your app, select edit scheme, and click on the run icon. Then Look for a pair of radio buttons titled "Launch" and select the one with the name "Wait for executable to be launched."
Then when you run your app in Xcode it builds it and installs it on the device but does not launch it.
When your notification fires and the app launches the debugger attaches to your app and you can debug as normal (except that NSLog statements don't print to the debug console any more - an annoyance.)
Yes there is a way to see device logs on Mac.
Connect your iOS device to the Mac system using USB
Launch Xcode–>Window–>Devices
Select your device from the left panel
Now you can see the logs on the screen including the background activities.
In order to save the running logs.
Reproduce the issue or start working on your device on a the app you wanted to capture the logs. After the issue is reproduced click on the Save Console icon bottom right corner Xcode screen
For more details please visit this link
Hope this Helps!
Check your crash log
1.Launch Xcode on your desktop machine.
2.Open the Xcode Devices window. (Window menu -> Devices and Simulators, or Cmd-Shift-2.)
3.Find your device in the left sidebar, then select “device logs”.
Choose a Chrome crash (or multiple crashes) and select “Export” at the bottom of the Organizer window.

iPad Enterprise app -> popup 'XXX would like to install YYY' does not appear

I have uploaded an IPA file (Enterprise distribution) to diawi.com, and can download it on my own iPad no problem.
Visit diawi.com/xyzxyz
Click Install Application
A popup appears, asking "XXX would like to install YYY". Click Install
App appears on Home screen
I sent the link to a client, but when he follows this procedure, he does not get a popup in step 3. What could be a possible cause?
I also tried the same procedure using installfish.com instead of diawi.com, but also there I can install the app without a problem, but my client does not get the proper popup.
Additional information:
The app is packaged using Xcode 7
Both me and my client are using iOS 9.2
Ensure Java Script is enabled for safari by moving into iPad settings -> Safari -> Advanced

Get (console?)logs from iPhone Settings app

I've never used, let alone debugged, an iPhone until today - please be gentle.
I'm trying to install onto an iOS 8 iPhone a VPN configuration .mobileconfig file of my own creation, and it is failing. I was fully expecting not to get it right first time - now I need to debug it.
How can I get logs of the failure please?
I have not been able to find a working app in the App Store. "LogPolice", for example, just shows an empty log.
XCode on a Mac refuses to connect to the process. I select Debug -> Attach to Process -> Settings (xx) and it tells me
Lost connection to "iPhone".
Restore the connection to "iPhone" and run
"Settings" again, of if "Settings" is still running, you
can attach to it by selecting Debug > Attach to
Process > Settings
Retrying, restarting XCode, restarting the mac, restarting the phone have no effect.
I have at my disposal a Mac, a Windows PC (for which I do not have admin rights) and a Ubuntu VM (for which I have admin rights). Happy to use any of them.
You can't debug the settings app as it's not an app you'll have the debug symbols for.
You can view the devices console which should shed some more light on the issue. See this reddit comment to locate it in Xcode: https://www.reddit.com/r/iOSProgramming/comments/294kj4/where_did_the_console_from_devices_go_in_xcode_6/cihel8l

Resources