标签: xcode5

该应用程序引用有效负载addMatches中的非公共选择器:(CoreDataGeneratedAccessors)

从XCode5/ios7开始,在验证我的应用程序时,我现在在xcode自动生成的选择器上收到验证警告.在搜索我的源代码后,我没有看到任何令人担忧的事情.有没有其他人遇到过这个?

@interface User (CoreDataGeneratedAccessors)

- (void)addMatchesObject:(Match *)value;
- (void)removeMatchesObject:(Match *)value;
- (void)addMatches:(NSSet *)values;
- (void)removeMatches:(NSSet *)values;

- (void)addNotificationsObject:(Notification *)value;
- (void)removeNotificationsObject:(Notification *)value;
- (void)addNotifications:(NSSet *)values;
- (void)removeNotifications:(NSSet *)values;

@end
Run Code Online (Sandbox Code Playgroud)

UPDATE

令人惊讶的是,我重构了我的代码以使用addMatchesObject:而不是addMatches,并且验证警告消失了..... dafuq?

itunesconnect core-data ios xcode5

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

Xcode5:应用程序引用Payload/<AppName> .app/<AppName>中的非公共选择器:setAttribution:

今天,我尝试使用Xcode 5该应用程序向我的应用程序提交更新,并发出警告The app references non-public selectors in Payload/<AppName>.app/<AppName>: setAttribution:.以前,它工作得很好,最后一次更新是在八月.

我正在使用Facebook SDK 3.2图书馆.可能是什么问题呢?谢谢!

facebook ios ios7 xcode5

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

Xcode 5代码完成在.h文件中不起作用

在我的项目中,代码完成在.h文件中不起作用.有什么建议 ?

编辑:

它显示直接导入但不适用于嵌套导入.即使是正常导入,它也只显示左侧没有符号的名称列表.

输入ns时自动完成的图片

codesense xcode5

8
推荐指数
0
解决办法
852
查看次数

Xcode 5插件

来自Visual Studio和ReSharper世界,你可以想象当我第一次接受'Xcode'IDE体验时的震撼状态......现在我已经习惯了它的叹息

我已经尝试过JetBrain的AppCode,它在代码编辑方面效果很好,但对于调试和其他东西却没有那么多,回到了Xcode.

寻找Xcode 5插件的建议,任何可以增强IDE的东西.

谢谢!

xcode plugins xcode5

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

为现有Xcode 5项目添加本地存储库

我正在运行Xcode 5教程并希望进行一些重大更改,但希望将此Xcode 5项目放入存储库.

我已经做了一些阅读,您可以通过转到Xcode - >首选项 - >帐户 - >添加存储库 - >输入存储库地址来添加存储库:

那么我在这里输入的本地存储库(在我的iMac上)我想要继续工作?

干杯.

git xcode ios xcode5

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

XCode5模拟器::-Xlinker中的未知选项字符"X"

我目前被链接器错误阻止,该错误只发生在XCode5上(XCode4编译正常)并且仅在模拟器上发生(正常设备编译正常).

当我尝试编译时,我得到一个"Apple Mach-O Librarian Error",它给出了以下文本墙:

Libtool build/DevOnly-iphonesimulator/libCozi\Common\Code.a普通i386 cd/Users/jr/ios/app/iCozi setenv IPHONEOS_DEPLOYMENT_TARGET 4.3 setenv PATH"/Applications/XCode5/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator. platform/Developer/usr/bin:/Applications/XCode5/Xcode.app/Contents/Developer/usr/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin"/Applications/XCode5/Xcode.app/目录/开发人员/工具链/ XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/XCode5/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/jr/ios/app/iCozi/build/DevOnly-iphonesimulator -L/Users/jr/ios/app/iCozi /../../ ext/aiMatch/SASIA_iOS_SDK-iphonesimulator -L/Users/jr /ios/app/iCozi/../../ext/GoogleAdsSDK-iphone-v3.1/Library -L/Users/jr/ios/app/iCozi /../../ ext/Google\Analytics\SDK/Library -L/Users/jr/ios/app/iCozi /../../ ext/AdMarvel_iOS_SDK_2_9_1/AdMarvelSDK -L/Users/jr/ios/app/iCozi /../../ ext/libComScore-1.1107.12 -L/Users/jr/ios/app/iCozi /../../ ext/TestFlightSDK -L/Users/jr/ios/app/iCozi /../../ ext/mBlox-SDK/Debug-universal -L/Users/jr/ios/app/iCozi /../../ ext/mBlox-SDK/Release-universal -L/Users/jr/ios/app/iCozi /../../ ext/FacebookSDK/FacebookSDK.framework/Versions/A -L/Users/jr/ios/app/iCozi /../../ ext/GoogleConversionTrackingSDK -L/Users/jr/ios/app/iCozi /../../ ext/TapjoyAdvertiserSDK/TapjoyAdvertiserLibrary -L/Users/jr/ios/app/iCozi/.. /../ext/MobileAppTracker.framework/Versions/A -filelist /Users/jr/ios/app/iCozi/build/iCozi.build/DevOnly-iphonesimulator/Cozi\Common\Code.build/Objects-normal/i386/ Cozi\Common\Code.LinkFileList -all_load -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/jr/ios/app/iCozi/build/iCozi.build/DevOnly-iphonesimulator/Cozi\Common\Code.build/Cozi\Common\Code.xcent -framework MobileAppTracker /Applications/XCode5/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/lib/libz.dylib -framework Foundation -framework UIKit -framework …

iphone xcode objective-c ios xcode5

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

iOS 7应用程序图标在我添加新图像时立即显示黑色

我开始在iOS 6下编写这个应用程序我设法修复了关于图像和弃用API的所有内容而没有问题.

我正在创建一个支持iOS 7风格的新图标,但无论我在启动应用程序时添加新引用,我都会使用资产目录和/或直接路径到图像,我会得到一个黑色图标.

我显然做错了什么.

这是我的资产目录,显示所有映射的图像.它们实际上并没有出现在应用程序中,我在所有iOS应用程序中都有黑色图标.

在此输入图像描述

每当我发布时,我都会得到一个黑色图标.是否与Info.plist文件中的某些设置有关?

这里是.

<?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">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIcons</key>
    <dict/>
    <key>CFBundleIcons~ipad</key>
    <dict/>
    <key>CFBundleIdentifier</key>
    <string>com.neckbeardrepublic.${PRODUCT_NAME:rfc1034identifier}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>7.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIAppFonts</key>
    <array>
        <string>Lato-Black.ttf</string>
        <string>FontAwesome.ttf</string>
    </array>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UIStatusBarHidden</key>
    <false/>
    <key>UIStatusBarHidden~ipad</key>
    <true/>
    <key>UIStatusBarTintParameters</key>
    <dict>
        <key>UINavigationBar</key>
        <dict>
            <key>Style</key>
            <string>UIBarStyleDefault</string>
            <key>Translucent</key>
            <false/>
        </dict>
    </dict>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key> …
Run Code Online (Sandbox Code Playgroud)

icons image ios ios7 xcode5

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

UINavigationItem的背景颜色

我在Xcode 5的"默认导航控制器"中添加了几个视图控制器.我想更改条形图的颜色,但它不起作用.这是我使用的代码:

[[UINavigationBar appearance] setTintColor:[UIColor redColor]];
Run Code Online (Sandbox Code Playgroud)

这只会更改导航栏中的文本,而不会更改背景颜色.任何人都能指出我正确的方向吗?

background uinavigationitem ios ios7 xcode5

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

iOS 7:自定义UITableViewCell内容在编辑时不会移动吗?

我正在编辑自定义UITableViewCell.进入编辑模式时,标签和图像无法正常移动.

在此输入图像描述

- (IBAction) EditTable:(id)sender{
    UIButton *btn = (UIButton *)sender;
    if(self.editing) {
        [super setEditing:NO animated:NO];
        [btn setTitle:@"edit" forState:UIControlStateNormal];
        [tblView setEditing:NO animated:NO];
    } else {
        [super setEditing:YES animated:YES];
        [btn setTitle:@"done" forState:UIControlStateNormal];
        [tblView setEditing:YES animated:YES];
    }
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    // Return the number of sections.
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    int count = [arrData count];
    if(self.editing) [arrData count];
    return count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";
    DeleteUserCell *cell = (DeleteUserCell *)[tableView …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios ios7 xcode5

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

当函数缺少返回值时,编译器会生成警告但不会出错?

这是一个c ++函数:

int FuncWithoutReturn()
{
  int var = 10;
  ++var;
  // No return value here !!!
}
Run Code Online (Sandbox Code Playgroud)

在MSVC中,编译器生成错误:

错误C4716:'FuncWithoutReturn':必须返回一个值.

但在XCode 5中,编译器只是发出警告:

控制到达非空函数的结束

在运行时,如果我很幸运,应用程序崩溃.我知道这是一个愚蠢的错误,但编译器首先产生错误会很好.

只是想知道为什么XCode认为这是一个警告而不是错误.

c++ function xcode5

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