标签: xcode5

如何获取/找到 CoreBluetooth.Framework?

我安装了最新的 XCode,并试图将 CoreBluetooth.Framework 添加到我的项目中。它不在系统\库\框架中。我是不是找错地方了,还是我在某处遗漏了安装步骤?

xcode core-bluetooth xcode5

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

如何在 XCode 中使用 glew

我正在尝试将 glew 1.10.0 与最新的 XCode(5.0.2) 和最新的 Mac OsX 版本一起使用。到目前为止,我尝试了不同的事情:

  • 在构建阶段选项卡中添加了库“libGLEW.1.10.0.dylib”
  • 在构建阶段选项卡中添加了 OpenGL 框架
  • 将标题搜索路径更改为“usr/local/Cellar/glew/1.10.0/include”
  • 将库搜索路径更改为“usr/local/Cellar/glew/1.10.0/lib”
  • 包含带有“<>”和“”的 GL/glew.h

我总是收到错误“找不到‘GL/glew.h’文件”

c++ opengl macos glew xcode5

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

如何从 Cocoa 中的另一个 NSWindowController 打开一个 NSWindowController

我正在 Xcode5 中为 MacOSX 开发可可应用程序,我想通过按一个按钮从当前窗口打开另一个窗口,这是我的代码:

- (IBAction)openWindow:(id)sender {

    WindowController *controllerWindow = [[WindowController alloc] initWithWindowNibName:@"WindowController"];
    [controllerWindow showWindow:nil];
    [[controllerWindow window] makeMainWindow];
    }
Run Code Online (Sandbox Code Playgroud)

到目前为止,我可以看到窗口出现一秒钟,然后就消失了,如何正确执行此操作???

macos cocoa objective-c xcode5

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

在Objective C程序(Xcode)中使用汇编代码

有没有一种方法可以在Objective C程序中使用汇编代码。我正在为OSX开发应用程序,并希望将汇编代码与Objective C代码一起使用。我搜索了互联网,发现了这一点,但是我无法成功实现任何这些方法。任何帮助将不胜感激。

assembly xcode objective-c xcode5

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

Ruby/Mavericks 10.9/Xcode 5

我试图在Ruby 2.0.0上安装Nokogiri gem,同时使用Mavericks 10.9和Xcode 5,但我一直收到错误

You have to install development tools first
Run Code Online (Sandbox Code Playgroud)

我从Apple的开发者网站下载并安装了Mavericks的命令行工具,所以我不确定是什么问题.

我已经尝试过这个问题的解决方案但是当输入xcode-select --install到终端时我只是回到帮助菜单--install似乎不是一个有效的参数

Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder_path>
   or: xcode-select -version
Arguments:
   -print-path                     Prints the path of the current Xcode folder
   -switch <xcode_folder_path>     Sets the path for the current Xcode folder
   -version                        Prints xcode-select version information
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails command-line-tool xcode5 osx-mavericks

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

Xcode 5与SVN 1.7版崩溃 - 自签名证书

我今天已经更新到XCode 5(使用Mac AppStore),因为每当我打开我之前的项目(它是我本地SVN中的repos的工作副本)时它就会一直崩溃.

错误报告包含信息(IDESourceControlCredentialsValidator),表明XCode与我的SVN存在一些问题:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3532/Framework/Classes/Protocols/DVTInvalidation.m:243
Details:  <IDESourceControlCredentialsValidator, 0x7f8df10808f0> was never invalidated.
Run Code Online (Sandbox Code Playgroud)

是的,似乎是原因.当我打开XCode并单击"检出现有项目"时,一旦我输入服务器地址就会崩溃并开始连接.

为了仍然能够工作,我打开了XCode-Preferences-Source Control并取消选中"Enable Source Control".所以现在我必须使用另一个SVN工具来检查并更新我的回购,除了XCode.

有没有人知道如何解决这个问题?或者有没有人有类似的问题?

svn crash certificate self-signed xcode5

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

使用Xcode 5和Xcode 4.6.3的CocoaPods安装问题

在这个命令之后sudo gem install cocoapods我得到了错误.

我认为它连接到Xcode 5的错误路径.当我安装它时,我将它保存在桌面上,但他们将其移动到Application文件夹.我使用Xcode 4.6.3以及Xcode 5.如何更改路径来解决此问题.命令行工具安装在两个XCode上.

Building native extensions.  This could take a while...
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
creating Makefile

make
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -DJSON_GENERATOR  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64 -g -O3 -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common   -c generator.c
xcrun: Error: could not stat active Xcode path '/Users/alex/Desktop/Xcode 5.app/Contents/Developer'. (No such file or directory)
cc -arch i386 -arch x86_64 -pipe -bundle …
Run Code Online (Sandbox Code Playgroud)

xcode cocoapods xcode5 xcode4.6.3

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

使用ABMultiValueCopyValueAtIndex时,如何删除所有特殊字符的NSString?

当我使用ABpeoplePickerNavigationController时,当调用下面的委托时,我试图执行以下操作:

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier
{
    if(property == kABPersonPhoneProperty || property == kABPersonEmailProperty)
    {
        NSString *name = (__bridge NSString *)ABRecordCopyCompositeName(person);
        ABMutableMultiValueRef multi = (ABMultiValueRef)ABRecordCopyValue(person, property);
        NSString *number = (__bridge NSString*)ABMultiValueCopyValueAtIndex(multi, identifier);
        if(![VZMUtils validateEmail:number])
            number = [VZMUtils formatIdentificationNumber:number];
        number = [number stringByReplacingOccurrencesOfString:@"." withString:@""];
        ALog(@"number %@ and name %@",number,name);
        [self.popoverDelegate setDataWithName:name andDetail:number];
    }
    else
    {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Invalid type selected." message:@"Please select either a phone number or email address to add as a recipient" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, …
Run Code Online (Sandbox Code Playgroud)

objective-c abaddressbook ios ios7 xcode5

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

xcode 5将xib与ViewController类连接起来

我开始使用Xcode 5.我刚刚创建了一个没有xib文件的viecController.现在我已经创建了一个xib文件来连接我之前创建的ViewController,但我无法做到这一点.我需要做什么才能将xib与ViewController文件连接起来?谢谢

xib uiviewcontroller xcode5

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

将NSArray的内容保存为纯文本文件而不是xml

我正在尝试将NSArray的内容保存为纯文本文件.这是我如何保存数组的内容:

[myArrayContent writeToFile:filePath atomically:YES];
Run Code Online (Sandbox Code Playgroud)

但是被保存为xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <string>lineOne</string>
    <string>lineTwo</string>
</array>
</plist>
Run Code Online (Sandbox Code Playgroud)

我的问题是你如何将内容保存为纯文本:

lineOne lineTwo

你们中的任何人都知道如何实现这个?

我真的很感谢你的帮助.

objective-c nsarray ios xcode5

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