Godot Project Has 100 Errors When Exported To Xcode [Arm64] - xcode

I have been learning how to use Godot and recently I tried to export my project to Xcode to see how my game would look on my phone. When I try to run it, it shows that there are exactly 100 errors.
The error code is huge!
Ld /Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Products/Debug-iphoneos/Wheel.app/Wheel normal (in target 'Wheel' from project 'Wheel')
cd /Users/tonymartini/Desktop/Godot\ Round\ 2
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -L/Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Products/Debug-iphoneos -L/Users/tonymartini/Desktop/Godot\ Round\ 2 -F/Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Products/Debug-iphoneos -F. -FWheel -FWheel/dylibs -filelist /Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Intermediates.noindex/Wheel.build/Debug-iphoneos/Wheel.build/Objects-normal/arm64/Wheel.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Intermediates.noindex/Wheel.build/Debug-iphoneos/Wheel.build/Objects-normal/arm64/Wheel_lto.o -Xlinker -no_deduplicate -stdlib\=libc++ -framework StoreKit /Users/tonymartini/Desktop/Godot\ Round\ 2/Wheel.a -framework GameKit -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Intermediates.noindex/Wheel.build/Debug-iphoneos/Wheel.build/Objects-normal/arm64/Wheel_dependency_info.dat -o /Users/tonymartini/Library/Developer/Xcode/DerivedData/Wheel-hbetymftcixgfwcvonanonkkbxsz/Build/Products/Debug-iphoneos/Wheel.app/Wheel
Undefined symbols for architecture arm64:
"_mono_get_exception_argument", referenced from:
godot_icall_Array_CopyTo(Array*, _MonoArray*, int) in Wheel.a(collections_glue.iphone.opt.debug.arm64.o)
godot_icall_Dictionary_Add(Dictionary*, _MonoObject*, _MonoObject*) in Wheel.a(collections_glue.iphone.opt.debug.arm64.o)
"_mono_get_exception_index_out_of_range", referenced from:
godot_icall_Array_At(Array*, int) in Wheel.a(collections_glue.iphone.opt.debug.arm64.o)
godot_icall_Array_At_Generic(Array*, int, unsigned int, GDMonoClass*) in Wheel.a(collections_glue.iphone.opt.debug.arm64.o)
godot_icall_Array_SetAt(Array*, int, _MonoObject*) in Wheel.a(collections_glue.iphone.opt.debug.arm64.o)
godot_icall_Array_Insert(Array*, int, _MonoObject*) in
...
"_mono_type_full_name", referenced from:
GDMonoUtils::get_type_desc(_MonoType*) in
I reached the character limit so I cut out the middle, let me know if you want it
GDMono::get_class(_MonoClass*) in Wheel.a(gd_mono.iphone.opt.debug.arm64.o)
GDMono::~GDMono() in Wheel.a(gd_mono.iphone.opt.debug.arm64.o)
_GodotSharp::get_domain_id() in Wheel.a(gd_mono.iphone.opt.debug.arm64.o)
CSharpLanguage::debug_get_current_stack_info() in Wheel.a(csharp_script.iphone.opt.debug.arm64.o)
CSharpInstance::_internal_new_managed() in Wheel.a(csharp_script.iphone.opt.debug.arm64.o)
CSharpScript::_create_instance(Variant const**, int, Object*, bool, Variant::CallError&) in Wheel.a(csharp_script.iphone.opt.debug.arm64.o)
...
"_mono_runtime_set_main_args", referenced from:
GDMono::initialize() in Wheel.a(gd_mono.iphone.opt.debug.arm64.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Something I tried is talked about here: Link. Basically, download visual studio and export Xamarin dylib to Xcode project. The problem with this, as left unsolved in the post, is that instead of the hundred errors, a single new error appears:
"Unresolved symbol: gdmonosetupaot"

Related

XCode link error: Unsafe mutable addressor

My app was working great until about two hours ago when I got a link error regarding an unsafe mutable addressor.
What I've tried:
Clean and build, deintegrated and reinstalled my cocoapods, deleted derived data, restart XCode, restart Mac
None of this has helped. Can anyone tell me from the error text what the problem is?
Ld /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/Zoomoji.app/Zoomoji normal (in target 'Zoomoji' from project 'Zoomoji')
cd /Users/eligarfinkel/Documents/Zoomoji
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios15.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -L/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/usr/lib/swift -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/SwiftSpeech -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/SwiftySound -filelist /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji.swiftmodule -framework AVFoundation -framework Foundation -framework SwiftSpeech -framework SwiftySound -framework Pods_Zoomoji -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji_dependency_info.dat -o /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/Zoomoji.app/Zoomoji
Undefined symbols for architecture arm64:
"unsafeMutableAddressor of self #1 : Zoomoji.ContentView in Zoomoji.ContentView.body.getter : some", referenced from:
closure #3 () -> () in closure #1 () -> SwiftUI.TupleView<(SwiftUI.Text, SwiftUI.Button<SwiftUI.Text>, <<opaque return type of (extension in SwiftUI):SwiftUI.View.onAppear(perform: (() -> ())?) -> some>>.0, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftSpeech.SwiftSpeech.RecordButton, SwiftSpeech.SwiftSpeech.ViewModifiers.RecordOnHold>, SwiftSpeech.SwiftSpeech.ViewModifiers.OnRecognize>)> in closure #1 () -> SwiftUI.TupleView<(<<opaque return type of (extension in SwiftUI):SwiftUI.View.edgesIgnoringSafeArea(SwiftUI.Edge.Set) -> some>>.0, SwiftUI.VStack<SwiftUI.TupleView<(SwiftUI.Text, SwiftUI.Button<SwiftUI.Text>, <<opaque return type of (extension in SwiftUI):SwiftUI.View.onAppear(perform: (() -> ())?) -> some>>.0, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftSpeech.SwiftSpeech.RecordButton, SwiftSpeech.SwiftSpeech.ViewModifiers.RecordOnHold>, SwiftSpeech.SwiftSpeech.ViewModifiers.OnRecognize>)>>)> in Zoomoji.ContentView.body.getter : some in ContentView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I figured it out. I had a double instantiation of a variable. Once I deleted that, the app compiled normally.

Problem linking boost-python3 with xcode using macos

I wish to use boost-python3 to wrap my C++ code in macos with xcode.
I want to use xcode because it is linked to JUCE music packages. I used a simple example taken from the boost tutorial:
#include <boost/python.hpp>
char const* greet()
{
return "hello, world";
}
BOOST_PYTHON_MODULE(hello_ext)
{
using namespace boost::python;
def("greet", greet);
}
When I compiled the code I got a linking problem.
I went over the existing documentation and questions and changed the include paths and library paths. Currently, I used these:
Header search path:
/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m/
Library search path:
/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/
This is the linking logs:
Ld build/Debug/Midi2KontaktDLL.dylib normal x86_64
cd /Users/didi/Development/Juce/Midi2KontaktDLL/Builds/MacOSX
export MACOSX_DEPLOYMENT_TARGET=10.11
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/didi/Development/Juce/Midi2KontaktDLL/Builds/MacOSX/build/Debug -L/usr/local/Cellar/boost-python3/1.70.0_1/lib -L/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib -F/Users/didi/Development/Juce/Midi2KontaktDLL/Builds/MacOSX/build/Debug -filelist /Users/didi/Library/Developer/Xcode/DerivedData/Midi2KontaktDLL-eupsdkbbrcwqymategfreyedipek/Build/Intermediates.noindex/Midi2KontaktDLL.build/Debug/Midi2KontaktDLL\ -\ Dynamic\ Library.build/Objects-normal/x86_64/Midi2KontaktDLL.LinkFileList -install_name /usr/local/lib/Midi2KontaktDLL.dylib -mmacosx-version-min=10.11 -Xlinker -object_path_lto -Xlinker /Users/didi/Library/Developer/Xcode/DerivedData/Midi2KontaktDLL-eupsdkbbrcwqymategfreyedipek/Build/Intermediates.noindex/Midi2KontaktDLL.build/Debug/Midi2KontaktDLL\ -\ Dynamic\ Library.build/Objects-normal/x86_64/Midi2KontaktDLL_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ -framework Accelerate -framework AudioToolbox -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework IOKit -framework OpenGL -framework QuartzCore -framework WebKit -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/didi/Library/Developer/Xcode/DerivedData/Midi2KontaktDLL-eupsdkbbrcwqymategfreyedipek/Build/Intermediates.noindex/Midi2KontaktDLL.build/Debug/Midi2KontaktDLL\ -\ Dynamic\ Library.build/Objects-normal/x86_64/Midi2KontaktDLL_dependency_info.dat -o /Users/didi/Development/Juce/Midi2KontaktDLL/Builds/MacOSX/build/Debug/Midi2KontaktDLL.dylib
and the error I get:
Undefined symbols for architecture x86_64:
"_PyUnicode_Type", referenced from:
boost::python::to_python_value<char const* const&>::get_pytype()
const in Source.o
"__Py_NoneStruct", referenced from:
boost::python::api::object::object() in Source.o
"boost::python::detail::init_module(PyModuleDef&, void (*)())",
referenced from:
_PyInit_hello_ext in Source.o
"boost::python::detail::gcc_demangle(char const*)", referenced
from:
boost::python::type_info::name() const in Source
"boost::python::detail::scope_setattr_doc(char const*,
boost::python::api::object const&, char const*)", referenced from:
void boost::python::def<char const* (*)()>(char const*, char const*
(*)()) in Source.o
Thanks!!!

Core Foundation Framework Error in Swift

I am attempting to call the CFSwapInt32HostToBig(<#arg: UInt32#>) method in swift file. I have added the CoreFoundation Framework to the project and I have "import CoreFoundation" at the top of my swift file. When I begin to type the method name, XCode suggest the method indicating to me that Xcode is recognizing methods from that framework. I have no errors in Xcode implying that all of my syntax is correct, but when I build I get the following error.
> Ld DerivedData/AudioToy/Build/Products/Debug-iphonesimulator/AudioToy.app/AudioToy normal x86_64
cd /Users/michaliberman/Documents/Projects/Swift/AudioToy
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Products/Debug-iphonesimulator -F/Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Products/Debug-iphonesimulator -filelist /Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Intermediates/AudioToy.build/Debug-iphonesimulator/AudioToy.build/Objects-normal/x86_64/AudioToy.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Intermediates/AudioToy.build/Debug-iphonesimulator/AudioToy.build/Objects-normal/x86_64/AudioToy.swiftmodule -mios-simulator-version-min=8.0 -framework CoreFoundation -framework AVFoundation -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Intermediates/AudioToy.build/Debug-iphonesimulator/AudioToy.build/Objects-normal/x86_64/AudioToy_dependency_info.dat -o /Users/michaliberman/Documents/Projects/Swift/AudioToy/DerivedData/AudioToy/Build/Products/Debug-iphonesimulator/AudioToy.app/AudioToy
Undefined symbols for architecture x86_64:
"_CASwapFloat32", referenced from:
_CASwapFloat32HostToBig in AudioStudio.o
"__OSSwapInt32", referenced from:
_CFSwapInt32HostToBig in AudioStudio.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have removed and re-imported the framework, but I still get the error. When I option-click on the method name it shows me the header file in which the method is declared and it if I click on that header file I see that it is within the framework. I am not sure what to do when the problem appears to be within the framework.
Use the bigEndian and littleEndian methods
let valueLE16 = 16
let valueBE16 = valueLE16.bigEndian
println("valueLE16: \(valueLE16)") // valueLE16: 16
println("valueBE16: \(valueBE16)") // valueBE16: 1152921504606846976
let valueLE16: Int16 = 16 //UnsafePointer<UInt16>(value.bytes)[0]
let valueBE16: Int16 = valueLE16.bigEndian
println("valueLE16: \(valueLE16)") // valueLE16: 16
println("valueBE16: \(valueBE16)") // valueBE16: 4096

Xcode 5 bot fails to build -- framework not found by ld

I am trying to set up my first Bot for CI. This bot successfully downloads source tree from git but fails to build application (IOS7, simulator mode) which I can build and run without any problems with regular Xcode 5.0.1 environment.
Particularly Bot fails on ld stage (see excerpt below). As I can suggest from the log file, ld cannot find QuartzCore framework, where CA.. functions are defined.
Compiler found all header files from framework, so, for the first glance path are configured OK, but ld cannot find library itself to link...
I suspect this is a trivial error with permissions or environment settings. Could you please point me where to dig?
Thanks in advance.
Regards,
Vladimir
+++ +++ +++
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator -F/Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Intermediates/SBK.build/Debug-iphonesimulator/SBKTests.build/Objects-normal/i386/SBKTests.LinkFileList -bundle_loader /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBK.app/SBK -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreText -framework SenTestingKit -framework UIKit -framework Foundation -framework CoreData -Xlinker -dependency_info -Xlinker /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Intermediates/SBK.build/Debug-iphonesimulator/SBKTests.build/Objects-normal/i386/SBKTests_dependency_info.dat -o /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBKTests.octest/SBKTests Undefined symbols for architecture i386:
"_CATransform3DMakeScale", referenced from: -[MBSwitch showFillLayer:animated:] in MBSwitch.o
"_CGAffineTransformIdentity", referenced from: -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
"_CGContextAddLineToPoint", referenced from: -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
"_CGContextAddPath", referenced from:
. . . . [skip ] . . . .
ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
** TEST FAILED **
The following build commands failed:
Ld /Library/Server/Xcode/Data/BotRuns/Cache/c5e74f8f-f2c8-f2c8-9bba-cc3ce564b8fb/DerivedData/Build/Products/Debug-iphonesimulator/SBKTests.octest/SBKTests normal i386 (1 failure)
+++ +++ +++
Solved!
It was really trivial issue.
Xcode bot tries to build all targets included into schema. In my case this is project itself and unit tests target. As tests was not developed yet, this target was not compiled. But bot tries to compile it... So all frameworks, linked to the "main target" should be linked to the test target as well.

Why do I get an Apple Mach-O Linker (ID) Error?

I know that this question had been asked many times, but every answer seems different. I have built my project and tried to run it, but I get this error:
Ld "/Users/******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot" normal i386
cd "/Users/******/Xcode/iOS/Cypher Bot/Universal/Cypher Bot/Cypher Bot"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -F/Users/**********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator -filelist "/Users/*******/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Intermediates/Cypher Bot.build/Debug-iphonesimulator/Cypher Bot.build/Objects-normal/i386/Cypher Bot.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o "/Users/********/Library/Developer/Xcode/DerivedData/Cypher_Bot-dxylepzskcnrtybprtuaotmycjjo/Build/Products/Debug-iphonesimulator/Cypher Bot.app/Cypher Bot"
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in CryptoMainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I also get this right below the message above:
What does this mean? What do I do to fix it?
The error means that the linker can't find the class definition for MFMailComposeViewController. That class is defined in the MessageUI framework. Did you add the MessageUI framework to your target? If you don't know how to do that, read this: How to "add existing frameworks" in Xcode 4?

Resources