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

QQ登录

只需一步,快速开始

查看: 3142|回复: 11

[结贴] V3.6 打包错误怎么办?

[复制链接]

1

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
发表于 2017-1-6 15:51:26 | 显示全部楼层 |阅读模式
用的虚拟机V3.5,然后又安装了一个v3.6

在工具内直接打包报错

You may not have the required environment or OS to build this project

退回V3.5打包,依然这个拨错

  1. 开始......
  2.    
  3. 保存配置信息:
  4.    
  5. 编译UI资源:
  6.    
  7. 清除编译环境:
  8.    
  9. 复制模版工程:
  10.    
  11. 复制工程:
  12.    
  13. 复制插件:
  14.    
  15. 复制WWW资源:
  16.    
  17. 更新工程信息:
  18.    
  19. 增加插件:
  20.    使用到的插件: [phonegap-plugin-barcodescanner, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, phonegap-plugin-barcodescanner]
  21.    开始安装插件......
  22.    开始准备插件参数......
  23.    插件 "phonegap-plugin-barcodescanner" 参数如下:
  24.    插件 "cordova-plugin-splashscreen" 参数如下:
  25.    插件 "cordova-plugin-app-preferences" 参数如下:
  26.    插件 "cordova-plugin-file" 参数如下:
  27.    插件 "cordova-plugin-file-transfer" 参数如下:
  28.    插件 "cordova-plugin-network-information" 参数如下:
  29.    插件 "cordova-plugin-zip" 参数如下:
  30.    插件 "cordova-plugin-inappbrowser" 参数如下:
  31.    插件 "cordova-plugin-x-toast" 参数如下:
  32.    插件 "com.justep.cordova.plugin.app.utils" 参数如下:
  33.    插件 "cordova-plugin-app-version" 参数如下:
  34.    插件参数准备完成
  35.    Installing "phonegap-plugin-barcodescanner" for android
  36.    Installing "phonegap-plugin-barcodescanner" for ios
  37.    Installing "cordova-plugin-splashscreen" for android
  38.    Installing "cordova-plugin-splashscreen" for ios
  39.    Installing "cordova-plugin-app-preferences" for android
  40.    Installing "cordova-plugin-app-preferences" for ios
  41.    Installing "cordova-plugin-file" for android
  42.    Installing "cordova-plugin-file" for ios
  43.    Installing "cordova-plugin-file-transfer" for android
  44.    Dependent plugin "cordova-plugin-file" already installed on android.
  45.    Installing "cordova-plugin-file-transfer" for ios
  46.    Dependent plugin "cordova-plugin-file" already installed on ios.
  47.    Installing "cordova-plugin-network-information" for android
  48.    Installing "cordova-plugin-network-information" for ios
  49.    Installing "cordova-plugin-zip" for android
  50.    Dependent plugin "cordova-plugin-file" already installed on android.
  51.    Installing "cordova-plugin-zip" for ios
  52.    Dependent plugin "cordova-plugin-file" already installed on ios.
  53.    Installing "cordova-plugin-inappbrowser" for android
  54.    Installing "cordova-plugin-inappbrowser" for ios
  55.    Installing "cordova-plugin-x-toast" for android
  56.    Installing "cordova-plugin-x-toast" for ios
  57.    Installing "com.justep.cordova.plugin.app.utils" for android
  58.    Dependent plugin "cordova-plugin-file" already installed on android.
  59.    Dependent plugin "cordova-plugin-file-transfer" already installed on android.
  60.    Dependent plugin "cordova-plugin-network-information" already installed on android.
  61.    Dependent plugin "cordova-plugin-zip" already installed on android.
  62.    Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
  63.    Dependent plugin "cordova-plugin-x-toast" already installed on android.
  64.    Installing "com.justep.cordova.plugin.app.utils" for ios
  65.    Dependent plugin "cordova-plugin-file" already installed on ios.
  66.    Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
  67.    Dependent plugin "cordova-plugin-network-information" already installed on ios.
  68.    Dependent plugin "cordova-plugin-zip" already installed on ios.
  69.    Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
  70.    Dependent plugin "cordova-plugin-x-toast" already installed on ios.
  71.    Installing "cordova-plugin-app-version" for android
  72.    Installing "cordova-plugin-app-version" for ios
  73.    插件安装完成
  74.    
  75. 创建源代码工程:
  76.    

  77. ios应用环境准备:
  78.    1 identity imported.
  79.    
  80.    
  81. 生成ios应用包:
  82.    Running command: /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/cordova/build --debug --device
  83.    Building project  : /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/Credit.xcodeproj
  84.            Configuration : Debug
  85.            Platform      : device
  86.    Build settings from command line:
  87.        ARCHS = armv7 arm64
  88.        CONFIGURATION_BUILD_DIR = /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/build/device
  89.        SDKROOT = iphoneos9.3
  90.        SHARED_PRECOMPS_DIR = /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/build/sharedpch
  91.        VALID_ARCHS = armv7 arm64
  92.    
  93.    Build settings from configuration file '/Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/cordova/build-debug.xcconfig':
  94.        CODE_SIGN_IDENTITY = iPhone Developer
  95.        ENABLE_BITCODE = NO
  96.    
  97.    === BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===
  98.    
  99.    Check dependencies
  100.    
  101.   
  102.    
  103.    ERROR building one of the platforms: Error: /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/cordova/build: Command failed with exit code 2
  104.    You may not have the required environment or OS to build this project
  105.    ** BUILD FAILED **
  106.    
  107.    
  108.    The following build commands failed:
  109.            Check dependencies
  110.    (1 failure)
  111.    Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/cordova/build-debug.xcconfig,-project,Credit.xcodeproj,ARCHS=armv7 arm64,-target,Credit,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/build/sharedpch
  112.    Error: /Volumes/X5/WeX5/model/Native/Credit/build/src/platforms/ios/cordova/build: Command failed with exit code 2
  113. ****ERROR****: 子任务 "exec" 执行失败。
  114. ****ERROR****: 任务 "buildIOS" 执行失败。
  115. ****ERROR****: 执行出错:
  116. ****ERROR****: 错误信息: exec returned: 1
  117. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码
发表于 2017-1-6 16:27:30 | 显示全部楼层
请问xcode 版本 是多少?目前只支持7.3,
另外ios常遇到问题:http://docs.wex5.com/wex5-app-question-list-2042
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

24

主题

90

帖子

294

积分

中级会员

Rank: 3Rank: 3

积分
294
QQ
发表于 2017-1-6 16:54:12 | 显示全部楼层
liangyongfei 发表于 2017-1-6 16:27
请问xcode 版本 是多少?目前只支持7.3,
另外ios常遇到问题:http://docs.wex5.com/wex5-app-question-lis ...

WeX5 V3.6, XCode 7.2.1我也遇到同样问题,android打包通过,IOS报错

iosbuilderror.png


QQ: 18239256
回复 支持 反对

使用道具 举报

发表于 2017-1-6 17:20:29 | 显示全部楼层
大苏-3区 发表于 2017-1-6 16:54
WeX5 V3.6, XCode 7.2.1我也遇到同样问题,android打包通过,IOS报错

XCode  目前只支持 7.3,建议您重现安装下吧!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

1

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
 楼主| 发表于 2017-1-6 17:20:30 | 显示全部楼层
本帖最后由 etfired 于 2017-1-6 17:22 编辑
liangyongfei 发表于 2017-1-6 16:27
请问xcode 版本 是多少?目前只支持7.3,
另外ios常遇到问题:http://docs.wex5.com/wex5-app-question-lis ...

直接用的百度网盘中虚拟机里面默认的,没有升级过 QQ图片20170106172155.png

回复 支持 反对

使用道具 举报

发表于 2017-1-6 17:28:55 | 显示全部楼层
etfired 发表于 2017-1-6 17:20
直接用的百度网盘中虚拟机里面默认的,没有升级过

其他的呢条件满足吗?
打包服务器和wex5版本要一致!
自带案例打包正常吗?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

24

主题

90

帖子

294

积分

中级会员

Rank: 3Rank: 3

积分
294
QQ
发表于 2017-1-6 17:31:34 | 显示全部楼层
大苏-3区 发表于 2017-1-6 16:54
WeX5 V3.6, XCode 7.2.1我也遇到同样问题,android打包通过,IOS报错

问题已经解决了,是我的appid com.kkzhuang.kkzsforeman里面的大小写与苹果上面注册的bundle identifier不一致。将其中的字母改成匹配的大写就可以了,主要是WeX5填写的时候被水印的提示文字误导了,它说只能小写字母。
QQ: 18239256
回复 支持 反对

使用道具 举报

24

主题

90

帖子

294

积分

中级会员

Rank: 3Rank: 3

积分
294
QQ
发表于 2017-1-6 18:54:04 | 显示全部楼层
liangyongfei 发表于 2017-1-6 17:28
其他的呢条件满足吗?
打包服务器和wex5版本要一致!
自带案例打包正常吗? ...

打包服务器和开发环境的都是WeX5 V3.6,保证是一致的。
QQ: 18239256
回复 支持 反对

使用道具 举报

1

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
 楼主| 发表于 2017-1-9 09:39:40 | 显示全部楼层
大苏-3区 发表于 2017-1-6 17:31
问题已经解决了,是我的appid com.kkzhuang.kkzsforeman里面的大小写与苹果上面注册的bundle identifier ...

appid 是配置到项目配置上的包名称吗??
我直接复制注册的bundle到上面的
回复 支持 反对

使用道具 举报

1

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
 楼主| 发表于 2017-1-9 09:40:25 | 显示全部楼层
大苏-3区 发表于 2017-1-6 18:54
打包服务器和开发环境的都是WeX5 V3.6,保证是一致的。

都是3.6的,虚拟机默认是3.5的,我还重新下了3.6
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-27 08:38 , Processed in 0.071087 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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