clang错误 - 找不到DS.Store

时间:2018-01-20 01:15:43

标签: java gradle clang gluon

我在尝试遵循此示例时遇到了回避问题:http://docs.gluonhq.com/samples/gonative/

DekstopLogService更正为DesktopLogService后,我确保可以正确调用特定于平台的实现。

我一直遇到涉及原生Objective-C代码的ios实现问题。通过在标准gradle项目中构建.a库,我可以更好地理解构建脚本 - 因此我手动将libLog.a移动到位。我有问题,我的实现似乎没有被调用 - 我不知道是否是由于库有错误。

尝试检查时是否jni.h必须放在native文件夹中我遇到此(铿锵)错误:未找到库... / jniLibs / DS。在构建ios时存储。我试图重建库但问题仍然存在。

#include "IOSLogService"添加到Log.m的顶部。构建突然起作用,Objective_C实现首次运行。

enter image description here

但是当删除Log.m中的行时,它仍然有效。当我删除整个本机文件夹时,它也有效。我从另一个libLog.a构建了一个新的Log.m - 我在其中进行了一些编辑。然而,当我再次成功构建时,旧Log.m的功能仍然存在。然后我又陷入了同样的错误 - 无法建立。这一切都发生在昨天 - 我可以将它重新安装到位并重新开始工作。我尝试用原来的libLog.a取代jniLibs - 但没有。

今天 - 仍然遇到同样的问题,我搜索了错误 - 以及DS.Store。我在dekstop上创建了一个新的空文件夹libLog.a,并将已存在的libLog.a放入其中 - 然后将其移动到Gluon项目中。现在它再次起作用 - 我已经能够从不同类型的Log.m文件构建failed link ... jniLibs/DS.Store个文件 - 从那时起我就可以获得预期的功能类型。

简而言之,错误是关于:构建到ios {{1}}

时出现Clang错误

这是整个错误消息:

链接12299个类(ios thumbv7发布) 103811中的103811个方法包含在可执行文件中 构建ios binary / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / SendingShit /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / SendingShit -arch armv7 -Wl, -filelist,/ Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / objects0 -w -L /Users/home/.gradle/caches/modules-2/files-2.1/com.gluonhq/robovm -dist / 2.3.1-ios11 / edb33a25c7c3f6679b89cbcc3f15b267ccd3f15c / unpacked / robovm-2.3.1-ios11 / lib / vm / ios / thumbv7 -ObjC -exported_symbols_list / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -fPIC -miphoneos-version-min = 7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -lrobovm-bc -force_load /Users/home/.gradle/caches/modules-2/files-2.1/com.gluonhq/robovm-dist/2.3.1-ios11/edb33a25c7c3f6679b89cbcc3f15b267ccd3f15c/unpacked/robovm-2.3.1-ios11/ lib / vm / ios / thumbv7 / librobovm-rt.a -lrobovm-co re -lgc -lpthread -ldl -lm -lz -liconv -lsqlite3 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreGraphics -framework CoreText -framework ImageIO -framework MobileCoreServices -framework CoreBluetooth -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework AVFoundation -framework AudioToolbox -framework MediaPlayer -framework UserNotifications -framework AVKit -framework StoreKit -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9 /e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libglass.a -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/ unpacked / ios-sdk / rt / lib / libjavafx_font.a -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios -sdk / rt / lib / libjavafx_iio.a -force_load /Users/home/.gradle/caches/模块-2 /文件-2.1 / org.javafxports / IOS-SDK / 8.60.9 / e900bcbcc39096ff9a3a409c28efe35d32f57ef5 /解压/ IOS-SDK / RT / LIB / libjavafx_ios_webnode.a     -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libprism_common.a-force_load / Users / home / .gradle / caches / modules-2 / files-2.1 / org.javafxports / ios-sdk / 8.60.9 / e900bcbcc39096ff9a3a409c28efe35d32f57ef5 / unpacked / ios-sdk / rt / lib / libprism_es2.a -l / Users / home /NetBeansProjects/SendingShit/src/ios/jniLibs/.DS_Store -force_load /Users/home/NetBeansProjects/SendingShit/src/ios/jniLibs/libLog.a -force_load / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libRuntimeArgs.a -force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libLifecycle.a -force_load / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libStatusBar.a -force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libDisplay.a-force_load / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libBrowser.a -force_ load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libStorage.a-force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libShare.a-force_load / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libCharm.a -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks ld:找不到-l / Users / home / NetBeansProjects / SendingShit / src / ios / jniLibs / .DS_Store的库 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) :createIpa FAILED :createIpa(Thread [Daemon worker Thread 4,5,main])完成。花了1分钟2.45秒。

失败:构建因异常而失败。

  • 出了什么问题: 任务执行失败':createIpa'。
      

    org.apache.commons.exec.ExecuteException:Command' /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / SendingShit -arch armv7 -Wl,-filelist,/ Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / objects0 -w -L / Users / home / .gradle / caches / modules-2 / files-2.1 / com.gluonhq / robovm-dist / 2.3.1-ios11 / edb33a25c7c3f6679b89cbcc3f15b267ccd3f15c / unpacked / robovm-2.3.1-ios11 / lib / vm / ios / thumbv7 -ObjC -exported_symbols_list / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / thumbv7 / exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -fPIC -miphoneos-version-min = 7.0 -isysroot /Applications/Xcode.app/Contents /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -lrobovm -bc -force_load /Users/home/.gradle/caches/modules-2/files-2.1/com.gluonhq/robovm-dist/ 2.3.1-ios11 / edb33a25c7c3f6679b89cbcc3f15b267ccd3f15c /解压/ robovm -2.3.1-ios11 / lib / vm / ios / thumbv7 / librobovm-rt.a -lrobovm-core -lgc -lpthread -ldl -lm -lz -liconv -lsqlite3 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreGraphics -framework CoreText -framework ImageIO -framework MobileCoreServices -framework CoreBluetooth -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework AVFoundation -framework AudioToolbox -framework MediaPlayer -framework UserNotifications -framework AVKit -framework StoreKit -force_load / Users / home /。 gradle这个/高速缓存/模块-2 /文件-2.1 / org.javafxports / IOS-SDK / 8.60.9 / e900bcbcc39096ff9a3a409c28efe35d32f57ef5 /解压/ IOS-SDK / RT / LIB / libglass.a -force_load /Users/home/.gradle/caches /modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libjavafx_font.a-force_load/Users/home/.gradle/caches/modules- 2 /文件-2.1 / org.javafxports / IOS-SDK / 8.60.9 / e900bcbcc39096ff9a3a409c28efe35d32f57ef5 /解压/ IOS-SDK / RT /升ib / libjavafx_iio.a -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libjavafx_ios_webnode .A -force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libprism_common.a - force_load /Users/home/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/e900bcbcc39096ff9a3a409c28efe35d32f57ef5/unpacked/ios-sdk/rt/lib/libprism_es2.a -l /用户/home/NetBeansProjects/SendingShit/src/ios/jniLibs/.DS_Store -force_load /Users/home/NetBeansProjects/SendingShit/src/ios/jniLibs/libLog.a -force_load /用户/主页/的NetBeansProjects / SendingShit /编译/ javafxports / TMP / IOS /本地/ libRuntimeArgs.a -force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libLifecycle.a -force_load /用户/主页/的NetBeansProjects / SendingShit /编译/ javafxports的/ tmp / ios / native / libStatusBar.a -force_加载/Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libDisplay.a -force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libBrowser.a -force_load / Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libStorage.a -force_load /Users/home/NetBeansProjects/SendingShit/build/javafxports/tmp/ios/native/libShare.a-force_load/ Users / home / NetBeansProjects / SendingShit / build / javafxports / tmp / ios / native / libCharm.a -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks'失败(退出值:1)

0 个答案:

没有答案