2019-10-09 18:38:11.086615+0800 proj-mobile[1408:423767] log : wxlog:set property list
2019-10-09 18:38:11.095783+0800 proj-mobile[1408:423767] +[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x103a5aa30
2019-10-09 18:38:11.095991+0800 proj-mobile[1408:423767] EXCEPTION THROW: +[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x103a5aa30
wxLogin throw: {}
2019-10-09 18:38:11.096207+0800 proj-mobile[1408:423767] HelloOC: wxLogin throw: {}
错误如下,点击登录后报错。求教
请检查工程文件中选择 Build Setting,在"Other Linker Flags"中是否已经添加了"-ObjC -all_load"
详情请参考接入文档3.2的第4点 https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html
可以尝试在other link flags添加框里的
如果是cocoapods,试试 podspec 添加 s.static_framework = true 然后去掉 之前添加的 -all_load, force_load 之类的参数;还是不行的话,就把原来的pod目录删掉,重新pod install,我的是这么解决的
-ObjC -all_load 这两个加在 TARGETS 里的 Build Setting -> Linking -> Other Linker Flags.
别被官方文档里写的在“工程文件”中,而是在TARGETS里APP中!
2022-01-12 19:25:27.545181+0800 App[7556:2773102] 微信log:>>>>>>>>>>>>> wxlog:set property list 2022-01-12 19:25:27.546447+0800 App[7556:2773102] +[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x1010017c8 2022-01-12 19:25:27.547237+0800 App[7556:2773102] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x1010017c8' *** First throw call stack: (0x180e8104c 0x1994f5f54 0x180f5df44 0x180e16474 0x180e155b0 0x100f453e0 0x100f44c30 0x100f23ccc 0x100c71d6c 0x100cb3e54 0x100cb3fb0 0x18f851090 0x18fae7328 0x18fd9c9b8 0x18f5e1ddc 0x18f9f3824 0x18f5bf848 0x18f5bee58 0x18ceb6074 0x18ceb71e4 0x180ea3020 0x180eb3ce0 0x180dedfe8 0x180df37f4 0x180e073b8 0x19c79738c 0x1837a76a8 0x1835267f4 0x1007fba84 0x100a85a24) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x1010017c8'
求助求助!!!
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x105099a28'
怎么解决? 一直闪退找不到原因 , WX号:Mrboy326
怎么解决的??????????????????????
怎么解决的 有人知道不?
在other link flags 添加-force_load 和$(PROJECT_DIR)/Tan8/OpenSource/ShareSDK4.3.4/ShareSDK/Support/PlatformSDK/WeChatSDK/libWeChatSDK.a 之后 这个
[WXApi genExtraUrlByReq:withAppData:] 报错的问题解决了 大家可以试试
我原本用的是sdk 1.8.2 一切正常,因为苹果版本UIwebview的问题, 更新了sdk 1.8.7 现在提示:
Class method '+sendReq:' not found (return type defaults to 'id');
这要怎么弄啊?
cocos2dx平台开发, 因为如果加上 -all_load 就会提示 duplicate, 所以用 -force_load $(SRCROOT)/ios/SDKExport/libWeChatSDK.a 代替; 结果微信登录就会挂掉.
有人遇到相同的问题吗?怎么解决啊?搞了两天了还没弄好