---
title: "iOS Dev (18) Undefined symbols for architecture xxx:   \"_main\", referenced from ..."
author: "prevention"
date: "2014-01-06T13:01:00Z"
tags: []
slug: "ios-dev-18-undefined-symbols-for-architecture-xxx-main-referenced-from"
draft: false
lastmod: "2014-02-03T16:56:20Z"
id: 2010877
url: "https://prevention.iteye.com/blog/2010877"
---

Undefined symbols for architecture i386:

"\_main", referenced from:

start in crt1.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

\-

解决办法：检查Build Phases, Compile Sources是不是少元素，尤其是 Supporting Files/main.m