iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
wzl90
V2EX  ›  iDev

求大神指导, app 做一个 today Extension,使用 asihttprequest,现在模拟器能请求到数据并展示,但是真机上展示不出来,抓包可知没有那个联网,求原因和解决方法。

  •  
  •   wzl90 · Mar 2, 2016 · 2398 views
    This topic created in 3859 days ago, the information mentioned may be changed or developed.
    求大神指导, app 做一个 today Extension ,使用 asihttprequest ,现在模拟器能请求到数据并展示,但是真机上展示不出来,抓包可知没有那个联网,求原因和解决方法。
    1 replies  •  2016-03-03 10:36:12 +08:00
    wzl90
        1
    wzl90  
    OP
       Mar 3, 2016
    原因找到了:是 TARGETS 的 capabilities 中的 Keychain Sharing 的 Keychain Groups 不对,导致 asihttprequest 的 addRequestHeader:@"UDID" value:[[UIDevice currentDevice]deviceId]挂了,取 deviceid 不对 NSString *deviceId = [[KeychainItemWrapper sharedWrapper]objectForKey:(__bridge NSString*)kSecValueData];这句跪了。希望对大家有所帮助。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:28 · PVG 05:28 · LAX 14:28 · JFK 17:28
    ♥ Do have faith in what you're doing.