且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用xcode 6.2在越狱设备中调试iOS应用程序

更新时间:2023-11-14 19:56:46

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



因为没有最新的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.