我怎样才能让弗兰克与Cocoapods和界面建设者(Rubymotion)很好地合作

时间:2016-05-27 20:24:03

标签: ios cocoapods rubymotion frank

我一直在努力让Frank在我的RubyMotion应用程序中运行良好。这变得非常紧张,任何帮助都会受到赞赏。

到目前为止我做了什么:

  • 构建了一个应用程序。该应用程序包括Cocoapods和ib gem。
  • 安装了frank gem gem install frank-cucumber
  • frank setup(到目前为止一切似乎都很好......)
  • frank build(这就是:大便:击中粉丝)

见下文:

remove  Frank/frankified_build
   run  xcodebuild -xcconfig Frank/frank.xcconfig clean build  -arch i386 -configuration Debug -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO DEPLOYMENT_LOCATION=YES DSTROOT="/Users/Gavin/Clients/TheApp/iOS/Frank/frankified_build" FRANK_LIBRARY_SEARCH_PATHS="\"/Users/Gavin/Clients/TheApp/iOS/Frank\""  from "."
Build settings from command line:
ARCHS = i386
DEPLOYMENT_LOCATION = YES
DSTROOT = /Users/Gavin/Clients/TheApp/iOS/Frank/frankified_build
FRANK_LIBRARY_SEARCH_PATHS = "/Users/Gavin/Clients/TheApp/iOS/Frank"
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator9.3

Build settings from configuration file 'Frank/frank.xcconfig':
FRANK_CORE_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -lShelley -lCocoaAsyncSocket -lCocoaLumberjack -lCocoaHTTPServer -lFrank
FRANK_CORE_MAC_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -lShelleyMac -lCocoaAsyncSocketMac -lCocoaLumberjackMac -lCocoaHTTPServerMac -lFrankMac
FRANK_GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = $(FRANK_CORE_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS)
FRANK_LDFLAGS = $(FRANK_LDFLAGS_$(PLATFORM_NAME))
FRANK_LDFLAGS_iphoneos = $(FRANK_CORE_LDFLAGS)
FRANK_LDFLAGS_iphonesimulator = $(FRANK_LDFLAGS_iphoneos)
FRANK_LDFLAGS_macosx = $(FRANK_CORE_MAC_LDFLAGS)
GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = FRANKIFIED
INSTALL_PATH = /./

=== CLEAN TARGET ib OF PROJECT ib WITH CONFIGURATION Debug ===

Check dependencies

Clean.Remove clean build/UninstalledProducts/iphonesimulator/libib.a
builtin-rm -rf /Users/Gavin/Clients/TheApp/iOS/build/UninstalledProducts/iphonesimulator/libib.a

Clean.Remove clean build/ib.build/Debug-iphonesimulator/ib.build
builtin-rm -rf /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build

Clean.Remove clean build/Debug-iphonesimulator/libib.a
builtin-rm -rf /Users/Gavin/Clients/TheApp/iOS/build/Debug-iphonesimulator/libib.a

** CLEAN SUCCEEDED **

=== BUILD TARGET ib OF PROJECT ib WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-all-non-framework-target-headers.hmap
/bin/mkdir -p /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/ib.LinkFileList
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-project-headers.hmap
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-all-target-headers.hmap
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-own-target-headers.hmap
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib.hmap
write-file /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-generated-files.hmap

SymLink build/Debug-iphonesimulator/libib.a build/UninstalledProducts/iphonesimulator/libib.a
cd /Users/Gavin/Clients/TheApp/iOS
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/Gavin/.rvm/gems/ruby-2.2.3/bin:/Users/Gavin/.rvm/gems/ruby-2.2.3@global/bin:/Users/Gavin/.rvm/rubies/ruby-2.2.3/bin:/Users/Gavin/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/heroku/bin"
/bin/ln -sfh /Users/Gavin/Clients/TheApp/iOS/build/UninstalledProducts/iphonesimulator/libib.a /Users/Gavin/Clients/TheApp/iOS/build/Debug-iphonesimulator/libib.a

CompileC build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/Stubs.o ib.xcodeproj/Stubs.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Gavin/Clients/TheApp/iOS
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/Gavin/.rvm/gems/ruby-2.2.3/bin:/Users/Gavin/.rvm/gems/ruby-2.2.3@global/bin:/Users/Gavin/.rvm/rubies/ruby-2.2.3/bin:/Users/Gavin/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/heroku/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=202 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fmodules-ignore-macro=FRANKIFIED -fbuild-session-file=/var/folders/qh/gr7t4tsj2_x_4lp5mkyvcw0r0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -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 -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.3 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-generated-files.hmap -I/Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-own-target-headers.hmap -I/Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-all-target-headers.hmap -iquote /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/ib-project-headers.hmap -I/Users/Gavin/Clients/TheApp/iOS/build/Debug-iphonesimulator/include -I/Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/DerivedSources/i386 -I/Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/DerivedSources -F/Users/Gavin/Clients/TheApp/iOS/build/Debug-iphonesimulator -DFRANKIFIED -MMD -MT dependencies -MF /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/Stubs.d --serialize-diagnostics /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/Stubs.dia -c /Users/Gavin/Clients/TheApp/iOS/ib.xcodeproj/Stubs.m -o /Users/Gavin/Clients/TheApp/iOS/build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/Stubs.o
In file included from /Users/Gavin/Clients/TheApp/iOS/ib.xcodeproj/Stubs.m:4:
/Users/Gavin/Clients/TheApp/iOS/ib.xcodeproj/Stubs.h:10:9: fatal error: 'CoreAudio/CoreAudio.h' file not found
#import <CoreAudio/CoreAudio.h>
  ^
1 error generated.

** BUILD FAILED **


The following build commands failed:
CompileC build/ib.build/Debug-iphonesimulator/ib.build/Objects-normal/i386/Stubs.o ib.xcodeproj/Stubs.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

正如你所看到的那样,它很吓人,因为它找不到CoreAudio,我相信它已被我安装的其中一个包括(我还没有包含它)。

这似乎是因为Frank将IB创建的xcodeproject视为主应用程序:In file included from /Users/Gavin/Clients/TheRevelry/iOS/ib.xcodeproj/Stubs.m:4:

我已尝试this post中的建议,但它们不起作用(我的应用中没有任何其他工作区)。

1 个答案:

答案 0 :(得分:0)

我从未使用过这个,但似乎frank-cucumber是一个Ruby宝石而不是Rubymotion宝石,这是不一样的。

也许你正在寻找的是这个Rubymotion的宝石motion-frank