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

QQ登录

只需一步,快速开始

查看: 3134|回复: 2

[处理中] ios打包出错

[复制链接]

1

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2015-12-9 12:22:47 | 显示全部楼层 |阅读模式
   ** BUILD FAILED **
   
   
   The following build commands failed:
           CompileC build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/AuthHelper.o X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
   (1 failure)
   Error: /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/cordova/build: Command failed with exit code 65
       at ChildProcess.whenDone (/Users/windfate/Downloads/WeX5_V3.2.1-mac/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
       at ChildProcess.emit (events.js:98:17)
       at maybeClose (child_process.js:756:16)
       at Process.ChildProcess._handle.onexit (child_process.js:823:5)
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildIOS" 执行失败。
****ERROR****: 执行出错:
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at Pack.execTask(Pack.java:51)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:95)
        at java.lang.Thread.run(Thread.java:745)


这里是加入了一个自制的VPN插件,如果不选它可以打包成功,选上自制插件就失败了,不知道错在哪里

1

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
 楼主| 发表于 2015-12-9 12:37:42 | 显示全部楼层

   /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:50:15: error: 'release' is unavailable: not available in automatic reference counting mode
           [data release];
                 ^
   In file included from /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:1:
   In file included from /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/X5-Prefix.pch:24:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/dispatch/dispatch.h:48:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/os/object.h:75:
   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/objc/NSObject.h:37:1: note: 'release' has been explicitly marked unavailable here
   - (oneway void)release OBJC_ARC_UNAVAILABLE;
   ^
   /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:50:15: error: ARC forbids explicit message send of 'release'
           [data release];
            ~~~~ ^
   /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:159:75: error: ARC forbids explicit message send of 'autorelease'
       NSData* data = [[[NSData alloc] initWithBytesutValue lengthutLen] autorelease];
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
   /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:159:75: error: 'autorelease' is unavailable: not available in automatic reference counting mode
   In file included from /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/cn.com.tansun.VPNPlugin/AuthHelper.m:1:
   In file included from /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/X5-Prefix.pch:24:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/dispatch/dispatch.h:48:
   In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/os/object.h:75:
   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/objc/NSObject.h:38:1: note: 'autorelease' has been explicitly marked unavailable here
   - (instancetype)autorelease OBJC_ARC_UNAVAILABLE;
   ^
   4 errors generated.
   
   CompileC build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CDVSplashScreen.o X5/Plugins/org.apache.cordova.splashscreen/CDVSplashScreen.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
       cd /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios
       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:/Users/windfate/Downloads/WeX5_V3.2.1-mac/node:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Loan-App-generated-files.hmap -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Loan-App-own-target-headers.hmap -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Loan-App-all-target-headers.hmap -iquote /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Loan-App-project-headers.hmap -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/device/include -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/device/usr/local/lib/include -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/UninstalledProducts/include -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/device -IX5/Plugins -IX5/Plugins/cn.com.tansun.VPNPlugin -IX5/Plugins/org.apache.cordova.splashscreen -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/DerivedSources/armv7 -I/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/DerivedSources -F/Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/device -include /var/folders/8j/6r9ttp_d4zg52hbvtkwm1ffm0000gn/C/com.apple.DeveloperTools/7.1-7B91b/Xcode/SharedPrecompiledHeaders/X5-Prefix-eaaxutrcnnahhlcgxwiaifjnpcqc/X5-Prefix.pch -MMD -MT dependencies -MF /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CDVSplashScreen.d --serialize-diagnostics /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CDVSplashScreen.dia -c /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/X5/Plugins/org.apache.cordova.splashscreen/CDVSplashScreen.m -o /Users/windfate/Downloads/WeX5_V3.2.1-mac/model/Native/Loan-App/build/src/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CDVSplashScreen.o
回复 支持 反对

使用道具 举报

发表于 2015-12-9 12:44:00 | 显示全部楼层
那就只能说,你这个插件写的有问题呗!!
请参考下:http://doc.wex5.com/?p=2910,看看你的插件哪儿不符合规则!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 10:18 , Processed in 0.052295 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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