起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1132|回复: 2

[处理中2] 要疯了,只要放插件,IOS编译就出错

[复制链接]

12

主题

48

帖子

126

积分

初级会员

Rank: 2

积分
126
QQ
发表于 2016-4-16 16:17:54 | 显示全部楼层 |阅读模式
ERROR building one of the platforms: Error: /Volumes/X5/WeX5_V3.4/model/Native/.workspace/C7086AA92FA0000193271D6D90027090/build/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/X5/WeX5_V3.4/model/Native/.workspace/C7086AA92FA0000193271D6D90027090/build/platforms/ios/cordova/build-release.xcconfig,-project,测试之家.xcodeproj,ARCHS=armv7 arm64,-target,测试之家,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Volumes/X5/WeX5_V3.4/model/Native/.workspace/C7086AA92FA0000193271D6D90027090/build/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Volumes/X5/WeX5_V3.4/model/Native/.workspace/C7086AA92FA0000193271D6D90027090/build/platforms/ios/build/sharedpch
Error: /Volumes/X5/WeX5_V3.4/model/Native/.workspace/C7086AA92FA0000193271D6D90027090/build/platforms/ios/cordova/build: Command failed with exit code 2
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildIOS" finished with error.
****ERROR****: Build finished with error.
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html

这个我只放了一个QQ分享的插件,就出错误!
不放任何插件的时候可以正常编译

12

主题

48

帖子

126

积分

初级会员

Rank: 2

积分
126
QQ
 楼主| 发表于 2016-4-16 16:27:53 | 显示全部楼层
有人吗。代码很简单

define(function(require){
        var $ = require("jquery");
        var justep = require("$UI/system/lib/justep");
        require("cordova!com.justep.cordova.plugin.qq");
        //var utils = require("$UI/system/components/justep/common/utils");
       
        var Model = function(){
                this.callParent();
        };

        Model.prototype.button1Click = function(event){
                function success(result) {
                        alert(JSON.stringify(result));
                }
                function error(result) {
                        alert(JSON.stringify(result));
                }
                var args = {};
               
                args.url = window.location.href;
                args.title =  "WeX5开发指南";
                args.description = "分享到qq";
                args.imageUrl = "http://wex5.com/cn/wp-content/uploads/2015/03/wen-xin-2.png";
                args.appName = "share";       
                navigator.QQ.shareToQQ(success, error, args);
        };

        return Model;
});
回复 支持 反对

使用道具 举报

12

主题

2627

帖子

2866

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2866
发表于 2016-4-16 17:16:36 | 显示全部楼层
把log/build.log文件发上来看看
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-5 15:02 , Processed in 0.061764 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表