小编Oxc*_*cug的帖子

未找到合适的记录验证您的捆绑标识符是否正确

我在iTunesConnect中创建了一个应用程序,它已经处于"准备提交"状态超过3天.当我尝试存档我的应​​用并将其提交到应用商店时,会显示以下消息:

没有找到合适的记录.验证您的包标识符是否正确

itunesconnect ios xcode6

118
推荐指数
10
解决办法
11万
查看次数

UIAlertController是Crashed(iPad)

我正在使用Xcode 6开发iOS应用程序.

当我使用时UIAlertController,它可以在iPhone 6模拟器上运行良好,但在iPad模拟器上崩溃.

单击"共享"时出现问题,然后可能会崩溃.我该怎么解决?

这是我的代码:

override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject] {

    var shareAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Share", handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in

        let shareMenu = UIAlertController(title: nil, message: "Share using", preferredStyle: .ActionSheet)
        let twitterAction = UIAlertAction(title: "Twitter", style: UIAlertActionStyle.Default, handler: nil)
        let facebookAction = UIAlertAction(title: "Facebook", style: UIAlertActionStyle.Default, handler: nil)
        let emailAction = UIAlertAction(title: "Email", style: UIAlertActionStyle.Default, handler: nil)
        let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel, handler: nil)

        shareMenu.addAction(twitterAction)
        shareMenu.addAction(facebookAction) …
Run Code Online (Sandbox Code Playgroud)

uialertsheet ipad uipopovercontroller ios uialertcontroller

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

在Objective-C Framework中导入Swift类

我有一个自定义框架,它有一堆Objective-C类.在Framework中,我想使用Swift添加更多类.但是,当尝试使用:将Swift类暴露给Objective-C代码时MyProduct-Swift.h,它会显示为" MyProduct-Swift.h找不到文件".

我在单个视图模板中尝试了这个,它工作正常.是不是可以在框架内导入Swift?

我还验证了我已经设置了Defines Module设置和Module Name.我已经尝试过,有没有这些设置.

xcode objective-c swift

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

在框架内将Swift文件暴露给Objective-C

我有一个包含Swift和Objective-C的框架.我在Objective-C类的顶部有声明#import "MyFrameworkHeader.h",我认为它会将我的swift代码暴露给我的Objective-C类,但是编译器仍然说这些符号不存在,我怎样才能将我的Swift类公开给我的Objective-同一个框架内的C类?

xcode objective-c ios swift

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

istream不消耗字符?

我有一个名为'is'的istringstream并包含字符串"101a0101".我的代码在这里:

cout << is.str() << endl;

char bit;
while (is >> bit) {
    if (bit == '0') /* do stuff */;
    else if (bit == '1') /* do stuff */;
    else break;
}

cout << is.str() << endl;
Run Code Online (Sandbox Code Playgroud)

这是我的输出

output:   
101a0101
101a0101
Run Code Online (Sandbox Code Playgroud)

为什么我的istringstream不消耗字符?

c++ stream istream

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

将UITabBarController推送到另一个UITabBarController

我有一个UINavigationController根源UITabBarController.我还有另外UITabBarController一个我在现有的基础上UITabBarController.

然而,当我做什么,UITabBarUITabBarController我提出没有得到现有一个从原来的顶推UITabBarController.有没有办法获得这个功能?

tabbar uitabbarcontroller ios

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

为 iOS 模拟器构建发布版本?

我正在尝试使用xcodebuildCLI 通过“发布配置”( -c Release) 和 iOS 模拟器的目标 ( -destination "platform: iOS Simulator") 来构建我的应用程序。然而,xcodebuild似乎不支持这种行为,因为它响应如下:

\n
$ xcodebuild -workspace Y.xcworkspace -scheme X -configuration Release -destination 'platform=iOS Simulator'\n                           \nxcodebuild: error: Unable to find a destination matching the provided destination specifier:\n        { platform:iOS Simulator }\n\n    Missing required device specifier option.\n    The device type \xe2\x80\x9ciOS Simulator\xe2\x80\x9d requires that either \xe2\x80\x9cname\xe2\x80\x9d or \xe2\x80\x9cid\xe2\x80\x9d be specified.\n    Please supply either \xe2\x80\x9cname\xe2\x80\x9d or \xe2\x80\x9cid\xe2\x80\x9d.\n\n    Available destinations for the "X" scheme:\n        { platform:iOS Simulator, …
Run Code Online (Sandbox Code Playgroud)

iphone xcode xcodebuild ios

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