hewigovens / goagent-ios

goagent client for ios
http://repo.goagent.org/cydia
70 stars 32 forks source link

设置系统代理导致客户端崩溃 #4

Open GavinZhangDev opened 9 years ago

GavinZhangDev commented 9 years ago

弹窗提示
"注意,对正在运行的app可能暂时无法生效” 点击 OK 崩溃

hardware:iPad 4,iOS 7.1.2

GavinZhangDev commented 9 years ago

跟进代码:commit proxy preference changes failed!

GavinZhangDev commented 9 years ago

崩溃是因为release 一个空指针。加一个空保护就没事了 _SCPreferencesSynchronize(preferenceRef); if (preferenceRef) { CFRelease(preferenceRef); }

至于为什么更新 Preference 失败,我不太懂

跟进去似乎是

SCPreferencesRef preferenceRef = _SCPreferencesCreate(NULL, CFSTR("goagent-ios"), NULL);

左边为空值,能不能抽时间看看?

hewigovens commented 9 years ago

多谢反馈

2014-09-30 12:46 GMT+08:00 Gavin Zhang notifications@github.com:

崩溃是因为release 一个空指针。加一个空保护就没事了 _SCPreferencesSynchronize(preferenceRef); if (preferenceRef) { CFRelease(preferenceRef); }

至于为什么更新 Preference 失败,我不太懂

跟进去似乎是

SCPreferencesRef preferenceRef = _SCPreferencesCreate(NULL, CFSTR("goagent-ios"), NULL);

左边为空值,能不能抽时间看看?

— Reply to this email directly or view it on GitHub https://github.com/goagent/goagent-ios/issues/4#issuecomment-57266646.

Sincerely, hewig xu

hewigovens commented 9 years ago

需要安装到设备上并已root权限运行才可以成功的

img_0002