这是有问题的代码行(类似于GTM’s guidelines):
NSTimeInterval timeout = 0.1; [TAGContainerOpener openContainerWithID:containername tagManager:_tagManager openType:kTAGOpenTypePreferNonDefault timeout:&timeout notifIEr:self];
抛出的错误:
Terminating app due to uncaught exception 'NSParseErrorException',reason: 'Last tag: 116 should be 124'
堆栈跟踪:
*** First throw call stack:( 0 CoreFoundation 0x0000000104dffa75 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000104716bb7 objc_exception_throw + 45 2 CoreFoundation 0x0000000104dff9ad +[NSException raise:format:] + 205 3 MyApp 0x0000000102831ce6 -[TAGPBCodedinputStream readUnkNownGroup:builder:] + 152 4 MyApp 0x0000000102844904 -[TAGPBUnkNownFIEldSet mergeFIEldFrom:input:] + 283 5 MyApp 0x000000010283ceb1 -[TAGPBGeneratedMessage parseUnkNownFIEld:extensionRegistry:tag:] + 203 6 MyApp 0x000000010283cfc8 -[TAGPBGeneratedMessage mergeFromCodedinputStream:extensionRegistry:] + 264 7 MyApp 0x000000010283cb35 -[TAGPBGeneratedMessage mergeFromData:extensionRegistry:] + 88 8 MyApp 0x000000010283cc1e +[TAGPBGeneratedMessage parseFromData:extensionRegistry:] + 82 9 MyApp 0x0000000102852da7 -[TAGResourceStorageImpl loadResourceFromContainerfile:] + 352 10 MyApp 0x000000010284d245 -[TAGContainer createInitialContainer] + 89 11 MyApp 0x000000010284afd3 -[TAGContainer initWithID:tagManager:resourceStorage:] + 399 12 MyApp 0x000000010284b098 -[TAGContainer initWithID:tagManager:] + 112 13 MyApp 0x000000010284ffe5 -[TAGManager containerByID:] + 64 14 MyApp 0x000000010284f618 -[TAGManager openContainerByID:callback:] + 258 15 MyApp 0x000000010284e9d3 -[TAGContainerOpener openWithrefreshType:] + 850 16 MyApp 0x000000010284e5c5 +[TAGContainerOpener openContainerWithID:tagManager:openType:timeout:notifIEr:] + 155 17 MyApp 0x0000000102812588 -[AnalyticsManager initWithTrackingID:containername:] + 776 18 MyApp 0x00000001027b5afe -[tixAppDelegate setupAnalytics] + 94
到目前为止,我似乎无法在网上找到任何信息.到目前为止,我唯一看到的是在GA’s Release notes中提到他们已经弃用了openContainerWithID,但他们现在的指南却没有说明这个或者使用什么.
这是容器文件内容:
{ "exportFormatVersion": 1.3,"exportTime": "2015-06-23 16:11:59","containerVersion": { "accountID": "197720","containerID": "1300316","containerVersionID": "0","deleted": false,"container": { "accountID": "197720","name": "App","publicID": "GTM-MYCONTAINER","timeZoneCountryID": "US","timeZoneID": "America/Los_Angeles","notes": "","usageContext": [ "IOS" ],"fingerprint": "1434997566330","enabledBuiltInVariable": [ "EVENT","APP_ID","APP_name","APP_VERSION_CODE","APP_VERSION_name" ] },"fingerprint": "0","variable": [ { "accountID": "197720","variableID": "1","name": "UA Number","type": "c","parameter": [ { "type": "TEMPLATE","key": "value","value": "UA-TrackingNumber" } ],"fingerprint": "0" },{ "accountID": "197720","variableID": "3","name": "screen-from","type": "v","key": "name","value": "screen-from" } ],"variableID": "2","name": "screen-name","value": "screen-name" } ],"variableID": "4","name": "vIEw-name","value": "vIEw-name" } ],"fingerprint": "0" } ] }}
任何帮助赞赏.
解决方法 事实证明,如果在Google代码管理器的服务器端没有创建实际标记,则会发生此问题.我们的分析人员最终做了以下事情:
1.在服务器上创建所需的标签
2.生成我们在代码中更新的新容器文件
然后崩溃消失了,一切正常.
总结以上是内存溢出为你收集整理的iOS Google跟踪代码管理器在启动时因’NSParseErrorException’而崩溃,原因:’上次标记:116应为124′全部内容,希望文章能够帮你解决iOS Google跟踪代码管理器在启动时因’NSParseErrorException’而崩溃,原因:’上次标记:116应为124′所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)