小编Zac*_*ell的帖子

错误:构建iOS Cordova时无法读取未定义的属性'replace'

我使用了创建了一个cordova项目cordova create project hello com.hello Hello.

并添加了iOS平台使用cordova platform add iOS.并试图做cordova run ios以后cordova build ios.

但它告诉我这个错误(我用--d/--verbose来获取细节).

/ usr/bin/codesign --force --sign - --timestamp = none /Volumes/Untitled/Plot/PlotReel/platforms/ios/build/emulator/PlotReel.app/Volumes/Untitled/Plot/PlotReel/platforms/ios /build/emulator/PlotReel.app:替换现有签名

**建立成功**

找不到钩子"before_deploy"的脚本.错误:TypeError:无法读取undefined的属性'replace'

at remove (/Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/ios-sim/src/lib.js:282:70)
at Array.forEach (native)
at Object.getdevicetypes (/Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/ios-sim/src/lib.js:292:22)
at Object.listEmulatorImages [as run] (/Volumes/Untitled/Plot/test/platforms/ios/cordova/lib/list-emulator-images:34:29)
at deployToSim (/Volumes/Untitled/Plot/test/platforms/ios/cordova/lib/run.js:146:50)
at /Volumes/Untitled/Plot/test/platforms/ios/cordova/lib/run.js:88:20
at _fulfilled (/Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/q/q.js:796:13)
at /Volumes/Untitled/Plot/test/platforms/ios/cordova/node_modules/q/q.js:604:44
Run Code Online (Sandbox Code Playgroud)

我已经尝试再次卸载并安装cordova,但问题仍然存在.

请帮我.

ios npm cordova npm-install

42
推荐指数
4
解决办法
3万
查看次数

如何在Xamarin.Forms中启用Grid中的边框

我在Xamarin.Forms中构建一个网格.而且我想添加像桌子这样的边框.我认为我可以在定义行和列时添加边框,但是失败了.谁能帮我?这是我目前的代码.

Grid grid = new Grid {
    VerticalOptions = LayoutOptions.FillAndExpand,
    RowDefinitions = {
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height = GridLength.Auto },
        new RowDefinition { Height …
Run Code Online (Sandbox Code Playgroud)

c# xamarin xamarin.forms

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

如何让Django AutoFields以更高的数字开始

对于我们的Django应用程序,我们希望得到一个AutoField除了1以外的数字.似乎没有明显的方法来做到这一点.有任何想法吗?

python django autofield

19
推荐指数
2
解决办法
9477
查看次数

在Xamarin.forms中的Label的Text属性部分应用斜体效果

这是我在Xamarin.forms中的片段.

grid.Children.Add (new Label {Text = "Italic, Bold",
                            XAlign = TextAlignment.Center,
                            YAlign = TextAlignment.Center,
                            FontSize = 30
                        }, 1, 1);
Run Code Online (Sandbox Code Playgroud)

我需要制作"Italic"Italic字体和大胆的"Bold".

谁能帮我?

c# xamarin.ios xamarin xamarin.forms

9
推荐指数
1
解决办法
3124
查看次数

Android Studio的Windows在OSX VM上闪烁

我在VM上安装了OSX EL Capitan,基本操作系统是Windows 8.我在VM中使用Android Studio,当我在窗口中键入或单击时,屏幕闪烁.但是当我停止输入或点击,或切换到其他窗口时,它不会发生.这是一种性能问题吗?你以前遇到过这个问题吗?

Android Studio版本:2.2.3

OSX版本:10.11

VMWare Workstation版本:11.1.0

macos android vmware-workstation android-studio osx-elcapitan

7
推荐指数
1
解决办法
781
查看次数

安装Chalice时出错

我正在使用https://github.com/awslabs/chalice使用AWS Lambda,我在安装时遇到了以下问题

pip install chalice

这是错误.

Exception:
Traceback (most recent call last):
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py”, line 215, in main
   status = self.run(options, args)
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py”, line 342, in run
   prefix=options.prefix_path,
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py”, line 784, in install
   **kwargs
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py”, line 851, in install
   self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py”, line 1064, in move_wheel_files
   isolated=self.isolated,
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py”, line 345, in move_wheel_files
   clobber(source, lib_dir, True)
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py”, line 316, in clobber
   ensure_dir(destdir)
 File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py”, line 83, in ensure_dir
   os.makedirs(path)
 File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py”, line …
Run Code Online (Sandbox Code Playgroud)

python amazon-web-services chalice

6
推荐指数
1
解决办法
303
查看次数

如何在Xamarin.forms中的CarouselPage中以编程方式更改页面?

我正在使用CarouselPage类在Xamarin.Forms中实现Horizo​​ntal Slider.我将使CarouselPage类从点击页面移动到下一页,而不是滑动.

可能吗?谁能帮我?

提前致谢.

c# xamarin.ios carousel c#-3.0 xamarin.forms

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

如何在离子2上应用轮廓按钮

我正在使用Ionic 2并使用https://ionicframework.com/docs/v2/ionicons/上的按钮图标.

我打算使用,但它只显示黑色填充图像(iso-photos),而不是带有空内部背景的轮廓按钮(ios-photos-outline).

谁能帮我?提前致谢.

ionic-framework ionic2

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

Xamarin.forms中提供日语字体

我正在使用Xamarin.forms构建应用程序。我需要在我的应用程序上使用某些日语字体。Xamarin上有可用的日语字体列表吗?请告诉我。谢谢。

c# fonts xamarin xamarin.forms

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