您好我使用rubymotion starter
我想在rubymotion中使用我的应用程序中的SDK,但我遇到了一个问题,因为她没有创建文件,所以我无法点击我的应用程序。
我的错误是:
$url = "https://url.org/Search.aspx";
$checkFile = tempnam('/tmp', 'cookie.txt');
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_PROXY, "my.proxy.com:8080");
curl_setopt($ch, CURLOPT_PROXYPORT, 8080);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/x-www-form-urlencoded'
));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, $checkFile);
curl_exec($ch);
有我的Rakefile:
Build ./build/iPhoneSimulator-10.3-Development
ERROR! Building vendor project `vendor/ricoh-theta-sample-for-iosv2' failed to create at least one `.a' or `.framework' library.
我的宝石文件:
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'rubygems'
require 'motion-cocoapods'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'app_envisite'
app.info_plist['NSAppTransportSecurity'] = { 'NSAllowsArbitraryLoads' => true }
app.frameworks += [
'OpenGLES',
'GLKit',
'Accelerate',
'CoreGraphics',
'Foundation',
'ImageIO',
'UIKit' ]
app.vendor_project("vendor/ricoh-theta-sample-for-iosv2", :xcode,
:xcodeproj => "ricoh-theta-sample-for-iosv2.xcodeproj",
:target => "ricoh-theta-sample-for-iosv2",
:headers_dir => "ricoh-theta-sample-for-iosv2")
app.pods do
pod 'AFNetworking'
end
end
谢谢!
答案 0 :(得分:0)
您尝试“供应商”的Ricoh Theta SDK 2不包含框架或库 - 而是一个示例iOS程序。这就是您收到错误的原因。