{"action":"created","issue":{"url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/40","repository_url":"https://api.github.com/repos/iVanPan/Cordova_QQ","labels_url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/40/comments","events_url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/40/events","html_url":"https://github.com/iVanPan/Cordova_QQ/issues/40","id":160350733,"number":40,"title":"安装插件后，cordova build ios出错","user":{"login":"owen26","id":385786,"avatar_url":"https://avatars.githubusercontent.com/u/385786?v=3","gravatar_id":"","url":"https://api.github.com/users/owen26","html_url":"https://github.com/owen26","followers_url":"https://api.github.com/users/owen26/followers","following_url":"https://api.github.com/users/owen26/following{/other_user}","gists_url":"https://api.github.com/users/owen26/gists{/gist_id}","starred_url":"https://api.github.com/users/owen26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owen26/subscriptions","organizations_url":"https://api.github.com/users/owen26/orgs","repos_url":"https://api.github.com/users/owen26/repos","events_url":"https://api.github.com/users/owen26/events{/privacy}","received_events_url":"https://api.github.com/users/owen26/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-06-15T06:53:52Z","updated_at":"2016-09-20T08:07:03Z","closed_at":"2016-06-15T07:35:14Z","body":"第一次使用这个插件，之前用过你写的微博插件，以及其他人的微信分享插件，都没有碰到build问题。\r\n\r\ncordova版本最新的6.2.0, qq插件版本最新，xcode版本7.1.3\r\n\r\n执行cordova build ios时，最后报错信息为：\r\n\r\n> The following build commands failed:\r\n\tLd build/emulator/BX2.app/BX2 normal i386\r\n(1 failure)\r\nError: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/xinan/Projects/JRKB/JRKB.Mobile/platforms/ios/cordova/build-release.xcconfig,-project,BX2.xcodeproj,ARCHS=i386,-target,BX2,-configuration,Release,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/xinan/Projects/JRKB/JRKB.Mobile/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/xinan/Projects/JRKB/JRKB.Mobile/platforms/ios/build/sharedpch\r\n\r\n\r\n再往上翻log，发现是qq插件出错引起的，卸载插件后编译正常，和插件相关的报错信息为：\r\n\r\n> Ld build/emulator/BX2.app/BX2 normal i386\r\n    cd /Users/xinan/Projects/JRKB/JRKB.Mobile/platforms/ios\r\n    export IPHONEOS_DEPLOYMENT_TARGET=8.0 \r\nld: warning: ignoring file BX2/Plugins/cordova-plugin-qqsdk/TencentOpenAPI.framework/TencentOpenAPI, missing required architecture i386 in file BX2/Plugins/cordova-plugin-qqsdk/TencentOpenAPI.framework/TencentOpenAPI (3 slices)\r\nUndefined symbols for architecture i386:\r\n  \"_OBJC_CLASS_$_QQApiInterface\", referenced from:\r\n      objc-class-ref in YCQQ.o\r\n  \"_OBJC_CLASS_$_QQApiNewsObject\", referenced from:\r\n      objc-class-ref in YCQQ.o\r\n  \"_OBJC_CLASS_$_SendMessageToQQReq\", referenced from:\r\n      objc-class-ref in YCQQ.o\r\n  \"_OBJC_CLASS_$_TencentOAuth\", referenced from:\r\n      objc-class-ref in YCQQ.o\r\n  \"_kOPEN_PERMISSION_ADD_ALBUM\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_ADD_ONE_BLOG\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_ADD_SHARE\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_ADD_TOPIC\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_CHECK_PAGE_FANS\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_OTHER_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_SIMPLE_USER_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_USER_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_VIP_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_GET_VIP_RICH_INFO\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_LIST_ALBUM\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\n  \"_kOPEN_PERMISSION_UPLOAD_PIC\", referenced from:\r\n      -[YCQQ qqLogin:] in YCQQ.o\r\nld: symbol(s) not found for architecture i386\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n"},"comment":{"url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/comments/248233041","html_url":"https://github.com/iVanPan/Cordova_QQ/issues/40#issuecomment-248233041","issue_url":"https://api.github.com/repos/iVanPan/Cordova_QQ/issues/40","id":248233041,"user":{"login":"junhui75165","id":3411959,"avatar_url":"https://avatars.githubusercontent.com/u/3411959?v=3","gravatar_id":"","url":"https://api.github.com/users/junhui75165","html_url":"https://github.com/junhui75165","followers_url":"https://api.github.com/users/junhui75165/followers","following_url":"https://api.github.com/users/junhui75165/following{/other_user}","gists_url":"https://api.github.com/users/junhui75165/gists{/gist_id}","starred_url":"https://api.github.com/users/junhui75165/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junhui75165/subscriptions","organizations_url":"https://api.github.com/users/junhui75165/orgs","repos_url":"https://api.github.com/users/junhui75165/repos","events_url":"https://api.github.com/users/junhui75165/events{/privacy}","received_events_url":"https://api.github.com/users/junhui75165/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T08:07:03Z","updated_at":"2016-09-20T08:07:03Z","body":"@iVanPan 刚才测试的那个不是新的工程，刚新建一个工程，跑你的例子好像又没问题，那我再检查一下我的代码才行o(╯□╰)o"}}
{"actor":{"display_login":"junhui75165"}}