本文介绍了如何使用xcode 6.2在越狱设备中调试iOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚接触iOS和 Swift 。我想调试我的应用程序在真实的设备,而不是没有开发者帐户的模拟器,如Android应用程序调试使用Android Studio。



我有一个越狱的iOS设备,我正在使用xcode 6.2



无论如何,我想要一步一步地调试我的应用程序,并在任何参数或变量更改时查看设备日志。搜索次数后,我想直接询问:应该做什么...



有人帮助我,请...



我很感激您的答案。

解决方案

发展目的的帐户!
无论如何,有一种方法应该做的伎俩。



因为没有最新的ios和Xcode版本的答案,我在一些细节中显示。



首先,您应该从cydia.angelxwind.netcydia repo下载Appsync Unified到您的设备。



然后您可以继续这些步骤

首先打开应用程序,在xcode上单击显示包内容并转到以下路径:



内容 - >开发人员 - >平台 - > iPhoneOS.platform - >开发人员 - > SDKs - > iPhoneOS.sdk - > SDKSettings.plist



将SDKSetting.plist复制到某个地方,以更改值更改:



ENTITLEMENTS_REQUIRED为YES



CODE_SIGNING_REQUIRED为NO



AD_HOC_CODE_SIGNING_ALLOWED为YES





关闭Xcode,如果它是打开的并重新打开它。 (请注意,您必须选择Project Not Target)





在代码签名部分更改:



代码签名身份到特定代码签名



现在,Debug和Realese应该更改为Ad Hoc Code Sign。



现在创建新文件 - >资源 - >属性列表





将其命名为Entitlements.plist



添加一个项目应该可以调试并将其值设置为YES





现在返回Build Settings,在代码签名部分更改:



代码签名授予权利.plist





现在,您可以轻松地将设备目标设置为越狱设备并运行。 >

I'm new to iOS and Swift . I want to debug my app in real device not simulator without a developer account ,like Android apps debug using Android Studio.

I have a jailbroken iOS device and I'm using xcode 6.2

Anyway I want a step to step debug of my app and seeing the device logs when any parameter or variable is changing. After times of search I want to ask directly : WHAT SHOULD I DO...

someone help me, please...

I appreciate your answers in advance.

解决方案

first that's ways better to have an account for developing purposes!anyway there's a way should do the trick.

as there is no up to date answers out there for new versions of ios and Xcode i show it in some details.

first you should download "Appsync Unified" from "cydia.angelxwind.net" cydia repo to your device.

and then you can continue these steps

first open Applications,on xcode click Show Package Contents and go to through these paths:

Contents -> Developer -> Platforms -> iPhoneOS.platform -> Developer -> SDKs -> iPhoneOS.sdk -> SDKSettings.plist

copy SDKSetting.plist to somewhere in case of changing the values.

in DefualtProperties section change :

ENTITLEMENTS_REQUIRED to YES

CODE_SIGNING_REQUIRED to NO

AD_HOC_CODE_SIGNING_ALLOWED to YES

close Xcode if it’s open and reopen it. go to Build Settings of the project.(notice that you must select the Project not Target)

in Code Signing section change :

Code Signing Identity to Ad Hoc Code Sign

now Debug and Realese should change to Ad Hoc Code Sign as well.

now create new file -> Resources -> Property List

set it’s name to Entitlements.plist

add an item and it should be Can be debugged and set the value to YES

now go back to Build Settings, in Code Signing section and change :

Code Signing Entitlements to Entitlements.plist

now you can easily set the device target to your jailbroken device and run it.

这篇关于如何使用xcode 6.2在越狱设备中调试iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:41