使用hbuilder app打包功能 ,android可以成功 ios打包失败
报错信息:
CompileC build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/arm64/ViewController.o Pandora/ViewController.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /srv/bdserver.dcloud.net.cn/package/IOS/queue/8322ef29-eb42-7798-cd7a-55c420695e7b/Pandora
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DPDR_PLUS_GETUI -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=5.1.1 -iquote 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DCloud_Pandora-generated-files.hmap -I安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DCloud_Pandora-own-target-headers.hmap -I安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DCloud_Pandora-all-target-headers.hmap -iquote 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DCloud_Pandora-project-headers.hmap -I安装包制作目录build/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libxml2 -I安装包制作目录libPDRCore/libPDRCore/Managers -I安装包制作目录libPDRCore/libPDRCore/Feature/zip -I安装包制作目录libPDRCore/libPDRCore/Feature -I安装包制作目录libPDRCore/libPDRCore/MiniServer -I安装包制作目录libPDRCore/libPDRCore/tools -I安装包制作目录libPush/GeTuiPush/GeTuiPush -I安装包制作目录libPush/libPush -I安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DerivedSources/arm64 -I安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/DerivedSources -F安装包制作目录build/Release-iphoneos -F安装包制作目录Pandora/libs/Release-iphoneos -DNS_BLOCK_ASSERTIONS=1 -include /var/folders/_c/4wtsq0f53bdblsx2lgwdnrqh0000gn/C/com.apple.DeveloperTools/6.1-6A1052c/Xcode/SharedPrecompiledHeaders/Pandora-Prefix-bafyduamwmsgdbggnnkymonootsm/Pandora-Prefix.pch -MMD -MT dependencies -MF 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/arm64/ViewController.d --serialize-diagnostics 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/arm64/ViewController.dia -c 安装包制作目录Pandora/ViewController.m -o 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/arm64/ViewController.o
Ld build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/armv7/DCloud_Pandora normal armv7
cd /srv/bdserver.dcloud.net.cn/package/IOS/queue/8322ef29-eb42-7798-cd7a-55c420695e7b/Pandora
export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L安装包制作目录build/Release-iphoneos -L安装包制作目录Pandora/libs/Release-iphoneos -F安装包制作目录build/Release-iphoneos -F安装包制作目录Pandora/libs/Release-iphoneos -filelist 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/armv7/DCloud_Pandora.LinkFileList -dead_strip -llibPDRCore -llibPGInvocation -ObjC -llibCache -llibLog -llibIO -llibPGInvocation -llibStorage -llibWidget -llibUI -llibNativeUI -llibNavigator -llibCamera -llibPush -lGeTuiPush -lGexinSdk -liflySpeech -fobjc-link-runtime -miphoneos-version-min=5.1.1 -framework BaiduMapAPI -framework ImageIO -framework TencentOpenAPI -framework AssetsLibrary -framework CoreTelephony -framework AlipaySDK -framework iflyMSC -framework CFNetwork -framework QuartzCore -lxml2 -framework MessageUI -framework SystemConfiguration -framework MobileCoreServices -lz -framework AudioToolbox -framework Security -framework AddressBook -framework AddressBookUI -framework CoreMedia -framework AVFoundation -licucore -lstdc++.6 -framework CoreVideo -liconv.2 -framework MediaPlayer -framework GameKit -framework OpenGLES -framework CoreLocation -framework Accounts -weak_framework Social -lsqlite3.0 -framework MapKit -lstdc++ -framework CoreFoundation -framework UIKit -framework Foundation -framework CoreGraphics -weak_framework CoreGraphics -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreVideo -weak_framework CoreMedia -weak_framework Foundation -weak_framework MobileCoreServices -weak_framework SystemConfiguration -weak_framework MediaPlayer -weak_framework AudioToolbox -weak_framework GameKit -weak_framework Security -weak_framework QuartzCore -weak_framework CFNetwork -weak_framework CoreFoundation -weak-lstdc++.6 -weak-lxml2 -weak-lz -weak_framework AssetsLibrary -weak-lsqlite3.0 -weak_framework iflyMSC -weak_framework AVFoundation -weak_framework AddressBook -Xlinker -dependency_info -Xlinker 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/armv7/DCloud_Pandora_dependency_info.dat -o 安装包制作目录build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/armv7/DCloud_Pandora
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_PGSpeechImp", referenced from:
_OBJC_METACLASS_$_PGIFLYSpeech in libiflySpeech.a(PGIFLYSpeech.o)
"_OBJC_CLASS_$_PGSpeechImp", referenced from:
_OBJC_CLASS_$_PGIFLYSpeech in libiflySpeech.a(PGIFLYSpeech.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Pandora.build/Release-iphoneos/Pandora.build/Objects-normal/armv7/DCloud_Pandora normal armv7
(1 failure)
权限配置如下:
"permissions": {
"Cache": {
"description": "管理应用缓存"
},
"Console": {
"description": "跟踪调试输出日志"
},
"Downloader": {
"description": "文件下载管理"
},
"Events": {
"description": "应用扩展事件"
},
"File": {
"description": "访问本地文件系统"
},
"Gallery": {
"description": "访问系统相册"
},
"Invocation": {
"description": "使用Native.js能力"
},
"Storage": {
"description": "管理应用本地数据"
},
"Uploader": {
"description": "管理文件上传任务"
},
"Runtime": {
"description": "访问运行期环境"
},
"Webview": {},
"NativeUI": {},
"Navigator": {},
"Camera": {},
"Push": {},
"Geolocation": {},
"NativeObj": {}
},
1 个回复
apche (作者)
问题已解决,必须添加“语音输入”插件
但是我程序中没有用到这个插件,估计是和其他插件的有关联