首页 > 解决方案 > Xcode:命令 CodeSign 失败,退出代码为非零

问题描述

我曾是。尝试学习flutter并为此购买了macbook,这是我第一次使用macbook,所以请详细说明我该怎么做。下面是飞镖代码:

import 'package:flutter/material.dart';
void main(){
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(home: Text('hello'), ); 
  }
}

我已经下载了所有必要的软件,但仍然出现以下错误:

    ** BUILD FAILED **
Xcode's output:
↳
    /Users/pratteekshaurya/Desktop/flutterApp/may19/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
Exited (sigterm)

请帮我解决这个问题

标签: xcodeflutterdart

解决方案


推荐阅读