andsdk打包appstoer支付

2015-11-09 11:16:24.015 ultraman-mobile *** Assertion failure in void _UIApplicationMainPreparations(int, char **, NSString *__strong, NSString *__strong)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UIApplication.m:3595
2015-11-09 11:16:24.383 ultraman-mobile *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unable to instantiate the UIApplication subclass instance. No class named NSApplication is loaded.’
*** First throw call stack:
(
0 CoreFoundation 0x000000010841cf45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010b9e4deb objc_exception_throw + 48
2 CoreFoundation 0x000000010841cdaa + + 106
3 Foundation 0x00000001093a56b2 - + 169
4 UIKit 0x000000010977958a _UIApplicationMainPreparations + 603
5 UIKit 0x00000001097792de UIApplicationMain + 124
6 ultraman-mobile 0x0000000105ec8134 main + 100
7 libdyld.dylib 0x000000010c32e92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

打包后打开工程出现这个问题。有大神知道怎么解决吗? cocos2dx 3.8.1 只添加了一个appstoe支付的api

母工程没问题么?报的错误看不出跟AnySDK有什么关系。。

母体没有问题, 就是用anysdk打包出来的新项目打开编译就出先问题!

好吧我们自己重现了这个问题,请记得删掉除了iOS以外的Target。回帖留档用吧。

2018-05-11 18:26:48.977720+0800 mobileGame2-mobile[7574:128251] *** Assertion failure in void _UIApplicationMainPreparations(int, char **, NSString *__strong, NSString *__strong)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3698.52.10/UIApplication.m:3860
2018-05-11 18:26:49.099043+0800 mobileGame2-mobile[7574:128251] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unable to instantiate the UIApplication subclass instance. No class named NSApplication is loaded.’
*** First throw call stack:
(
0 CoreFoundation 0x000000010c1c71e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x00000001120d8031 objc_exception_throw + 48
2 CoreFoundation 0x000000010c1cc472 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000110c7a64f -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 165
4 UIKit 0x000000010e9e6366 _UIApplicationMainPreparations + 629
5 UIKit 0x000000010e9e6087 UIApplicationMain + 111
6 mobileGame2-mobile 0x0000000107c082e4 main + 100
7 libdyld.dylib 0x0000000111fec955 start + 1
8 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

同遇到这个问题,只有一个target啊。