标签: bundle

安装调试器时出错:无法使用ruby-1.9.3-p362构建gem本机扩展

在尝试为新项目运行bundle时,我遇到以下错误:

Installing debugger (1.2.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p362 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details. …
Run Code Online (Sandbox Code Playgroud)

ruby bundle ruby-on-rails

25
推荐指数
5
解决办法
3万
查看次数

尝试安装捆绑时,Laravel 4 Artisan出错

我只是尝试使用来自github的最新Laravel 4 beta,通过Artisan CLI安装laravel软件包.

但当我尝试这样的事情:

php artisan bundle:install bob
Run Code Online (Sandbox Code Playgroud)

我遇到了

[InvalidArgumentException]
There are no commands defined in the "bundle" namespace.
Run Code Online (Sandbox Code Playgroud)

我已经在网上看了一下,似乎无法找到解决方案,甚至其他任何有类似问题的人.

是否有其他人遇到此错误或解决方案的任何想法?

php bundle laravel laravel-4

25
推荐指数
1
解决办法
2万
查看次数

如何在Webpack中使用树摇动?

我刚刚使用Angular 2(版本rc.2)app(带有Typescript)更新到webpack 2.1.0-beta.15,但我想知道如何使用树摇动功能.我读到它应该"开箱即用",但我仍然有一个1.7Mb的捆绑一个非常简单的应用程序,所以可能我做错了.

这是我到目前为止:

tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "node_modules",
    "typings/main",
    "typings/main.d.ts"
  ]
}
Run Code Online (Sandbox Code Playgroud)

的package.json

{
  "name": "angular2-quickstart",
  "version": "1.0.0",
  "scripts": {
    "build": "webpack --progress",
    "build:prod": "webpack -p --progress --optimize-minimize",
    "postinstall": "typings install",
    "serve": "webpack-dev-server --inline --progress --output-public-path=/dist/"
  },
  "license": "ISC",
  "dependencies": {
    "@angular/common": "2.0.0-rc.2",
    "@angular/compiler": "2.0.0-rc.2",
    "@angular/core": "2.0.0-rc.2",
    "@angular/forms": "0.1.0",
    "@angular/http": "2.0.0-rc.2",
    "@angular/platform-browser": "2.0.0-rc.2",
    "@angular/platform-browser-dynamic": "2.0.0-rc.2",
    "@angular/router": "2.0.0-rc.2",
    "@angular/router-deprecated": "2.0.0-rc.2",
    "@angular/upgrade": "2.0.0-rc.2",
    "angular-pipes": "1.4.0",
    "bootstrap": …
Run Code Online (Sandbox Code Playgroud)

bundle webpack angular

25
推荐指数
1
解决办法
6124
查看次数

文件模式“*.apk”(来自“捆绑”插件)已被“Android”插件重新分配给文件类型“APK”

突然android studio显示了这条消息。

我必须做什么?

它显示:

File pattern '*.apk' (from 'bundled' plugin) was reassigned to file type 'APK' by 'Android' plugin
You can confirm or revert reassigning pattern '*.apk'
Run Code Online (Sandbox Code Playgroud)

并给出了三​​个链接:

Confirm reassign this pattern to file type 'APK'
Revert this pattern to file type 'ARCHIVE'
Edit file type 'ARCHIVE'
Run Code Online (Sandbox Code Playgroud)

android bundle archive apk android-studio

25
推荐指数
1
解决办法
3573
查看次数

bundler错误地尝试在生产中安装"开发"和"测试"组宝石

我有一个小型的网络应用程序,它使用了一堆宝石.其中一些仅用于testdevelopment环境.现在,当我尝试使用以下命令在生产服务器上启动unicorn时,它会失败.

unicorn_rails -E production -D -c config/unicorn.rb
Run Code Online (Sandbox Code Playgroud)

我在日志文件中看到的错误是:

Refreshing Gem list
Could not find gem 'spork (>= 0.9.0.rc2, runtime)' in any of the gem sources listed in your Gemfile.
Try running `bundle install`.
Run Code Online (Sandbox Code Playgroud)

我在下面粘贴了我的gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.1'
gem 'unicorn'
gem 'mongoid', '>= 2.0.0.beta.19'
gem 'devise'
gem 'cancan'
gem 'haml', '>= 3.0.0'
gem 'bson'
gem 'bson_ext'
gem 'formtastic'
gem 'bluecloth'

group :production do
  gem 'capistrano'
end

group :development do
  gem 'haml-rails'
  gem 'hpricot', '0.8.2'
  gem …
Run Code Online (Sandbox Code Playgroud)

gem bundle ruby-on-rails unicorn bundler

24
推荐指数
1
解决办法
1万
查看次数

Android:从不调用Parcelable.writeToParcel和Parcelable.Creator.createFromParcel

我在这里发布问题我很陌生,但是我已经在这里读了很多年了.通常情况下,我总能通过彻底搜索网络找到我的答案,但这次我不知所措......

在花了一天时间试图弄清楚为什么这不起作用之后我决定寻求帮助,希望你们能给我一些指针,或者更好的解决方案.

问题:在Android游戏中,我已经到了这样的程度,当用户例如按下HOME屏幕按钮时,我必须让应用程序记住它的状态.经过一些搜索后,我意识到为了让我的类在重新打开应用程序后初始化回适当的状态,我必须支持Parcelable接口将它们与Bundle一起传递.

在我的onStop和onStart函数中,我分别保存和恢复Bundle中的游戏状态,但是当我在Bundle上调用putParcelable和getParcelable函数时,永远不会调用对象的writeToParcel和createFromParcel函数.

担心这可能是由于游戏的相对复杂性,我认为我最好创建一个非常简单的应用程序,试图让它工作.

基于我在网上看过的许多Parcelable例子,这成了我的课:

public class ParcelableTest implements Parcelable {
  int id;

  public ParcelableTest(int newID)
  {
    id = newID;
  }

  private ParcelableTest(Parcel in) {
      readFromParcel(in);
  }

  public void writeToParcel(Parcel out, int arg1) {
      writeToParcel(out);
  }

  public void writeToParcel(Parcel out) {
    Log.v("ParcelableTest","Writing to parcel");
      out.writeInt(id);
  }

  public void readFromParcel(Parcel in) {
      id = in.readInt();
  }

  public int describeContents() {
      return 0;
  }

  public static final Parcelable.Creator<ParcelableTest> CREATOR = new
  Parcelable.Creator<ParcelableTest>() {
      public ParcelableTest createFromParcel(Parcel in) {
          Log.v("ParcelableTest","Creating from parcel"); …
Run Code Online (Sandbox Code Playgroud)

java android bundle parcelable

24
推荐指数
1
解决办法
1万
查看次数

iOS:如何在Interface Builder中使用自定义包中的图像?

我有一个捆绑,我把图像放在其中.

内容如下:

MyBundle.bundle/images/picture1.png
MyBundle.bundle/images/picture2.png
Run Code Online (Sandbox Code Playgroud)

我拖进MyBundle.bundle了我的项目.

现在我可以在Interface Builder中看到这些图像,甚至可以使用它们.但是,当我运行应用程序时,我看不到图像.

怎么了?

谢谢,

iphone bundle image interface-builder ios

24
推荐指数
2
解决办法
2万
查看次数

如何访问项目中的本地文件

我想在我的应用程序中添加一些静态文件(图像,二进制等).我把它们放在一个名为的文件夹下Resources,并将它添加到我的XCode项目中.

接下来,我将这些文件添加到项目设置Copy Bundle ResourcesBuild Phases选项卡中.

但是,我似乎无法以正确的方式提及它们.

例如,读取二进制文件:

NSInputStream *is = [[NSInputStream alloc] initWithFileAtPath:@"data.bin"];
if(![is hasBytesAvailable]) NSLog(@"wrong");
Run Code Online (Sandbox Code Playgroud)

这总是失败并打印 wrong

我尝试了类似的方法,NSData initWithContentsOfFile:但这甚至都不会执行.另一种尝试是使用,[NSBundle mainBundle]但这也没有完全执行.

我是iOS的新手,请帮助我访问我的本地文件!任何帮助,将不胜感激.

谢谢,

iphone xcode bundle objective-c ios

24
推荐指数
1
解决办法
4万
查看次数

我可以在捆绑中嵌入自定义字体并从ios框架访问它吗?

我创建一个IOS 框架与其捆绑包装ressources(笔尖,图片,字体),我试图嵌入一个自定义的字体在包中,但我不能够从框架加载它,这可能吗?

1)我可以使用以下方法对字体文件进行本地化: objc NSString *fontPath = [[NSBundle frameworkBundle] pathForResource:@"MyCustomFont" ofType:@"ttf"]; 2)但我无法在我的字体列表中获取它: objc NSArray * array = [UIFont familyNames]; 我在字符串的plist中包含了我的字体名称,其中包含"应用程序提供的字体",但没有成功,也尝试在app info plist,将其包含在框架资源中但没有成功.

我可以从包中加载笔尖和图像(通过前缀使用包的名称),但不能加载字体.任何想法 ?

编辑:我看到以下帖子:我可以在iPhone应用程序中嵌入自定义字体吗?,但问题只是"我可以在iPhone应用程序中嵌入自定义字体吗?" 不是"我可以在外部框架/捆绑包中嵌入自定义字体吗?" 它还引用了一个有趣的动态加载,但它使用私有api,这对于框架来说不是可用的解决方案.

谢谢

frameworks bundle objective-c ios

24
推荐指数
3
解决办法
1万
查看次数

asp.net mvc Bundle.IncludeDirectory示例?

您好任何人都可以举例说明如何使用Scriptbundle方法IncludeDirectory for Javascripts,无法获得如何编写搜索模式字符串,它是正则表达式吗?

bundles.Add(new ScriptBundle("~/bundles/customjs").IncludeDirectory(
                "~/Scripts/Custom",?);
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc bundle asp.net-mvc-4 bundling-and-minification

24
推荐指数
1
解决办法
1万
查看次数