iOS中,jPush 不能运行,编译失败。

jdxx
2017-10-29 10:16 2k 0

使用Visual Studio 2017开发,Cordova项目,android中一切正常。
iOS中,Debug状态可以运行,但是出现 jpush callback error:null 的错误,任何jpush的函数都不会执行。
Release根本不能通过编译。求大神告知如何解决。

环境:
Cordova 6.3.1
cordova-ios:4.3.1
jcore:1.1.10
Jpush: 3.2.11

编译错误:(Release)

    Ld /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/Objects-normal/i386/移动执法 normal i386
    cd /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/Apple/.taco_home/node_modules/taco-remote-lib/2.3.2/node_modules/ios-sim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/build/emulator -L/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-jcore -L/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-wechat -L/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-weibosdk -L/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/jpush-phonegap-plugin -F/Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/build/emulator -F移动执法/Plugins/cordova-plugin-qqsdk -filelist /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/Objects-normal/i386/移动执法.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/Objects-normal/i386/移动执法_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/移动执法.app.xcent /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/build/emulator/libCordova.a -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -lz /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-jcore/jcore-ios-1.1.6.a -weak_framework SystemConfiguration -framework CoreTelephony -framework Security -liconv -lsqlite3 -lstdc++ -framework TencentOpenAPI -lWeChatSDK -lsqlite3.0 -framework CFNetwork -lstdc++.6 -lWeiboSDK -framework QuartzCore -framework CoreText -framework Foundation /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/jpush-phonegap-plugin/jpush-ios-3.0.7.a -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AdSupport -weak_framework UserNotifications -weak-lresolv -Xlinker -dependency_info -Xlinker /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/Objects-normal/i386/移动执法_dependency_info.dat -o /Users/Apple/Library/Developer/Xcode/DerivedData/移动执法-cxhhlafsgpkyghgyqojggfndaxbn/Build/Intermediates/移动执法.build/Release-iphonesimulator/移动执法.build/Objects-normal/i386/移动执法
ld: warning: ignoring file /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-jcore/jcore-ios-1.1.6.a, missing required architecture i386 in file /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/cordova-plugin-jcore/jcore-ios-1.1.6.a (4 slices)
ld: warning: ignoring file /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/jpush-phonegap-plugin/jpush-ios-3.0.7.a, missing required architecture i386 in file /Users/Apple/.taco_home/remote-builds/taco-remote/builds/6942/cordovaApp/platforms/ios/移动执法/Plugins/jpush-phonegap-plugin/jpush-ios-3.0.7.a (4 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
      objc-class-ref in AppDelegate+JPush.o
  "_OBJC_CLASS_$_JPushNotificationTrigger", referenced from:
      objc-class-ref in JPushPlugin.o
  "_OBJC_CLASS_$_JPushNotificationIdentifier", referenced from:
      objc-class-ref in JPushPlugin.o
  "_kJPFNetworkDidReceiveMessageNotification", referenced from:
      -[JPushPlugin initPlugin] in JPushPlugin.o
  "_OBJC_CLASS_$_JPushNotificationRequest", referenced from:
      objc-class-ref in JPushPlugin.o
  "_OBJC_CLASS_$_JPushNotificationContent", referenced from:
      objc-class-ref in JPushPlugin.o
  "_OBJC_CLASS_$_JPUSHService", referenced from:
      objc-class-ref in JPushPlugin.o
      objc-class-ref in AppDelegate+JPush.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1个回答

热门排序