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

QQ登录

只需一步,快速开始

查看: 6417|回复: 17

[结贴] xcode打包报错,这个错误从来没有遇到过!

  [复制链接]

7

主题

18

帖子

76

积分

初级会员

Rank: 2

积分
76
QQ
发表于 2018-4-20 10:10:20 | 显示全部楼层 |阅读模式
Plugins/com.justep.cordova.plugin.barcodescanner/libuchardet.a (2 slices)
Undefined symbols for architecture x86_64:
  "_uchardet_data_end", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet.o
  "_uchardet_get_charset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet.o
  "_uchardet_reset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet.o
  "_uchardet_handle_data", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet.o
  "_uchardet_delete", referenced from:
      -[NCUchardet dealloc] in NCUchardet.o
  "_uchardet_new", referenced from:
      -[NCUchardet init] in NCUchardet.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
发表于 2018-4-20 10:17:27 | 显示全部楼层
好像和这个插件
com.justep.cordova.plugin.barcodescanne  有关系,
似乎缺少文件
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

7

主题

18

帖子

76

积分

初级会员

Rank: 2

积分
76
QQ
 楼主| 发表于 2018-4-20 10:37:09 | 显示全部楼层
liangyongfei 发表于 2018-4-20 10:17
好像和这个插件
com.justep.cordova.plugin.barcodescanne  有关系,
似乎缺少文件

是这个插件的问题。我核对过应该没有什么缺少的啊
回复 支持 反对

使用道具 举报

7

主题

18

帖子

76

积分

初级会员

Rank: 2

积分
76
QQ
 楼主| 发表于 2018-4-20 10:43:23 | 显示全部楼层
TIM图片20180420104108.png

感觉提示是缺少X86_64这种模式的。
回复 支持 反对

使用道具 举报

3

主题

304

帖子

798

积分

高级会员

Rank: 4

积分
798
QQ
发表于 2018-4-20 13:39:46 | 显示全部楼层
这个插件不支持模拟器调试,没有x86版本的库,只能用手机测试。
回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-28 21:05:11 | 显示全部楼层
jleeh 发表于 2018-4-20 13:39
这个插件不支持模拟器调试,没有x86版本的库,只能用手机测试。

用wex5能打包苹果版本,但是无法用xcode打包.
回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-28 21:42:19 | 显示全部楼层
同样出现这样的问题.wex5 3.8版本打包没问题,改用xcode打包就出问题:


ld: warning: ignoring file /Volumes/rows2/WeX5_3.8-mac/model/Native/bubu/build/src/platforms/ios/咘咘/Plugins/com.justep.cordova.plugin.barcodescanner/libuchardet.a, missing required architecture x86_64 in file /Volumes/rows2/WeX5_3.8-mac/model/Native/bubu/build/src/platforms/ios/咘咘/Plugins/com.justep.cordova.plugin.barcodescanner/libuchardet.a (2 slices)
Undefined symbols for architecture x86_64:
  "_uchardet_data_end", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_get_charset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_reset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_handle_data", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_delete", referenced from:
      -[NCUchardet dealloc] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_new", referenced from:
      -[NCUchardet init] in NCUchardet-2605A468AF8F2799.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-29 02:11:50 | 显示全部楼层
d1bug 发表于 2018-8-28 21:42
同样出现这样的问题.wex5 3.8版本打包没问题,改用xcode打包就出问题:

解决方案,不用com.justep.cordova.plugin.barcodescanner插件
改用cordova-plugin-qrscanner插件即可
回复 支持 反对

使用道具 举报

3

主题

304

帖子

798

积分

高级会员

Rank: 4

积分
798
QQ
发表于 2018-8-29 10:02:26 | 显示全部楼层
d1bug 发表于 2018-8-28 21:42
同样出现这样的问题.wex5 3.8版本打包没问题,改用xcode打包就出问题:

该插件不支持x86模拟器的打包

回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-29 13:12:13 | 显示全部楼层
jleeh 发表于 2018-8-29 10:02
该插件不支持x86模拟器的打包

那直接xcode打包ipa可以么
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-1 23:00 , Processed in 0.073401 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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