小编jbo*_*kwx的帖子

无法打开文件"<appName> .app",因为您无权查看它

当我尝试运行我的应用时收到以下警告:

无法打开文件"WxChase.app",因为您无权查看它.

我已经查看了以前可以找到的所有问题,但找不到答案.

我试过了:

  • 替换我的info.plist
  • 删除派生数据
  • 复制我的应用程序
  • 编辑项目文件夹的权限
  • 在构建设置中将"C/C++/Objective-C的编译器"更改为默认值
  • 检查我的架构
  • 清洁我的项目

谢谢你的帮助!

更新:我无法在模拟器或手机上运行它.

xcode ios

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

Segue没有进行编程学习

我有一个segue被编程地调用,performSegueWithIdentifier:但是不会触发。但是,当我使用按钮创建segue时,segue可以正常工作。我还尝试过在代码中更改我的segue的名称,这会产生no segue with identifier错误。

这是我的代码(注意:segue在两个不同的地方被调用,以检查它是否可以在代码中的其他地方起作用。)

#import "SignUpViewController.h"
#import "ProgressHUD.h"

@interface SignUpViewController ()

@end

@implementation SignUpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self performSegueWithIdentifier:@"profilePic" sender:self];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get …
Run Code Online (Sandbox Code Playgroud)

objective-c ios segue

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

标签 统计

ios ×2

objective-c ×1

segue ×1

xcode ×1