小编Joe*_*ner的帖子

目录未找到Apple Mach-O链接器警告但库搜索路径和框架搜索路径为空

我收到这些消息:

ld: warning: directory not found for option '-F"/Users/joel/Development/GHaikuTabbed"'
ld: warning: directory not found for option '-F"/Users/joel/Development/GHaikuTabbed/../../../Downloads"'
Run Code Online (Sandbox Code Playgroud)

但是,当我进入构建设置时(如'ld:warning:找不到选项的目录'所示),库搜索路径和框架搜索路径为空,因此无需删除任何内容.

关于我可以做的其他事情的想法,以摆脱这个警告?

xcode ios

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

iOS7中奇怪的UITabBar颜色不一致

我正在使用iOS 7 tintColorbarTintColor属性UITabBar在UITabBarController的子类中使用此代码为我着色:

[[UITabBar appearance] setBarTintColor:[UIColor colorWithRed:123/255.0 green:47/255.0 blue:85/255.0 alpha:1]];
[[UITabBar appearance] setTintColor:[UIColor colorWithRed:227/255.0 green:180/255.0 blue:204/255.0 alpha:1]];
Run Code Online (Sandbox Code Playgroud)

在三个屏幕上,颜色是我想要的颜色(只有两个图像说明了这一点):

主屏幕 反馈屏幕

一个屏幕,颜色非常轻.这个屏幕是一个UIWebView.

webview屏幕

然后在第四个屏幕上,颜色为SUPER-light.这个屏幕是唯一一个使用故事板的屏幕 - 其余的都是以编程方式完成的.

设置屏幕

我究竟做错了什么?事实上,行为不端的屏幕是一个UIWebView故事板和故事板有什么关系,为什么他们行为不端?我该如何解决它们?我已经摆弄了酒吧的阿尔法,但它并没有改变任何东西.

谢谢你的帮助.

objective-c ios7

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

找不到外部框架File/File.h(Parse/Parse.h)文件

因此,每当我更新我的应用程序时,Xcode声称即使它在那里也找不到特定的外部框架.它再次发生在Xcode 6和我常用的方法(我相当缺乏经验,所以这些基本上涉及点击和输入事情直到发生事情(我夸大但不是太多))不起作用.

我收到一条Lexical or Preprocessor Issue错误,'Parse/Parse.h' file not found.' 但是这里有它在项目中的截图并添加到库中:

在此输入图像描述

在此输入图像描述

我还按照'ld:warning:找不到选项的目录'中最热门答案的步骤,但仍然没有.

知道该怎么办?有什么想法吗?我在这里撕扯我的头发.

file-not-found ios parse-platform xcode6 ios8

12
推荐指数
5
解决办法
9357
查看次数

如何删除某些状态的UIButton图像?

我正在打牌.我希望卡片背面显示图像,卡片前端显示卡片内容.我已经将图像显示在背面,但我无法弄清楚如何在选中时将其清除.(所有运行 - 这个代码 - 当它选择的代码正在运行,所以我知道这不是一个不实际改变状态的问题.)这是我的代码:

-(void)updateUI {
for (UIButton *cardButton in self.cardButtons) {
    Card *card = [self.game cardAtIndex:[self.cardButtons indexOfObject:cardButton]];
    [cardButton setTitle:card.contents forState:UIControlStateSelected];
    [cardButton setTitle:card.contents forState:UIControlStateSelected | UIControlStateDisabled];
    [cardButton setImage:[UIImage imageNamed:@"cardback.png"] forState:UIControlStateNormal];

//I've tried various permutations of the following three lines, but the image never disappears.

    [cardButton setImage:nil forState:UIControlStateSelected];
    [cardButton setImage:nil forState:UIControlStateSelected | UIControlStateHighlighted];
    [cardButton setImage:nil forState:UIControlStateNormal];

    cardButton.selected = card.faceUp;
    cardButton.alpha=(card.unplayable ? 0.3:1.0);
    [self.scoreLabel setText:[NSString stringWithFormat:@"Score: %d",self.game.score]];
}
}
Run Code Online (Sandbox Code Playgroud)

关于我做错了什么的任何想法?

cs193p uibutton uiimage ios

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

ld:警告:找不到选项的目录 - 删除派生数据和清理项目不起作用

我将我在Xcode中工作的应用程序的整个文件夹从一个地方移动到另一个地方,然后得到警告,ld: warning: directory not found for option然后是一条很长的路径.

我按照Apple Mach-O Linker错误接受的答案,我不知道该怎么办,但仍然得到同样的警告.

编辑:这是我收到的消息,如果它是相关的:

Ld /Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator/GayHaikuTabbed.app/GayHaikuTabbed normal i386
cd /Users/joel/Development/GayHaiku
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator -L/Users/joel/Development/GayHaiku/GayHaikuTabbed -L/Users/joel/Development/GayHaiku -F/Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator -F. -FGayHaikuTabbed -FGayHaikuTabbedTests -F/Users/joel/Development/GayHaiku -F/Users/joel/Development/GayHaiku/../../../Downloads -F/Users/joel/Development/GayHaiku/../../Downloads -filelist /Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Intermediates/GayHaikuTabbed.build/Debug-iphonesimulator/GayHaikuTabbed.build/Objects-normal/i386/GayHaikuTabbed.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Parse -framework Accounts -framework AdSupport -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework Twitter -lsqlite3 -lz -lz.1.1.3 -framework MessageUI -framework …
Run Code Online (Sandbox Code Playgroud)

xcode warnings ios

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

bundle无效 - Info.plist中的CFBundleVersion和CFBundleShortVersionString必须包含更高版本 - 但它们确实

在尝试验证我的应用以准备提交到应用商店时,我收到以下错误:

在此输入图像描述

但这是我的Info.plist的屏幕截图,错误消息声明列表版本1.0,显示版本1.4.

的Info.plist

我做错了什么,我该如何解决这个问题?

xcode ios

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

新手试图理解.h文件中的多个@interface

我是一个新手,试图在2008年更新一个免费软件应用程序,然后(显然)被程序员放弃,他们没有回复我的电子邮件,并且都为当前的MacOS更新了它,并且还创建了一个版本.苹果手机.我想这将是一个漫长而有点噩梦的过程,但我很期待学习.

现在我处于开始阶段,我正在查看原始的以下GeniusPair.h文件:

#import <Foundation/Foundation.h>

@class GeniusItem;
@class GeniusAssociation;

extern const int kGeniusPairDisabledImportance;
extern const int kGeniusPairMinimumImportance;
extern const int kGeniusPairNormalImportance;
extern const int kGeniusPairMaximumImportance;

@interface GeniusPair : NSObject <NSCoding, NSCopying> {
GeniusAssociation * _associationAB; //!< Stats for standard learning mode directional relationship. 
GeniusAssociation * _associationBA; //!< Stats for Jepardy style learning mode directional relationship.

NSMutableDictionary * _userDict;
}

+ (NSArray *) associationsForPairs:(NSArray *)pairs useAB:(BOOL)useAB useBA:(BOOL)useBA;

- (id) initWithItemA:(GeniusItem *)itemA itemB:(GeniusItem *)itemB userDict:(NSMutableDictionary *)userDict;

//various other methods declared

@end


@interface GeniusPair …
Run Code Online (Sandbox Code Playgroud)

interface objective-c ios

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

“加载窗口nib文件失败”是什么意思?

我正在开发我的第一个 Cocoa 应用程序,我非常希望

[NSWindowController loadWindow]: failed to load window nib file 'Genius Document'
Run Code Online (Sandbox Code Playgroud)

意味着我做错了一些非常具体的事情,因为如果我必须回去重做所有绑定,我会想自杀。

FWIW,我正在使用一个基于文档的应用程序,它(到目前为止)只有一个 XIB 文件而没有 NIB 文件。

我可以发布我的绑定的代码/屏幕截图,但如果没有必要,我不想让人们通过它们。

谢谢您的帮助。

macos cocoa

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

如何修复这些Apple Mach-O链接器错误?

我正在使用Xcode 4.5.在尝试构建我刚刚开始的应用程序之后,我得到了以下Apple Mach-O链接器错误消息.

在此输入图像描述

这是什么意思,我该如何解决?

xcode ios

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

autoresizingmask函数未在Interface Builder中显示?

我想处理autoresizingmasks,但由于某种原因,我无法让对话显示出来.我IB的大小检查员看起来像这样:

在此输入图像描述

当我点击另一个检查员 - 属性,连接等 - 时,autoresizingmasks对话/检查器会立即显示(不足以让我抓住屏幕截图),只能被我点击的任何检查员所取代.我假设我有一些设置或其他切换,我需要解开,但戳Xcode没有透露它,我没有在Xcode的其他问题中发现这个问题.显然是一个非常基本的问题,但任何人都可以提供帮助吗?

xcode interface-builder autoresizingmask

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