# could not compile in xcode 6 with arm64 architecture

**URL:** https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789
**Category:** FMOD Studio
**Created:** [January 9, 2015, 8:28am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789 "2015-01-09T08:28:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 9, 2015, 8:28am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/1 "2015-01-09T08:28:16Z")

</div>

Working well in xcode 32-bit architecture. If i had arm64 architecture into the project it shows the following error  
linked command failed with exit xcode 1  
ignoring file /Users/edward/Documents/selva/projects/IAmThatIAmV3.0/api/lib/libfmodexL\_iphonesimulator.a, file was built for archive which is not the architecture being linked (x86\_64): /Users/edward/Documents/selva/projects/IAmThatIAmV3.0/api/lib/libfmodexL\_iphonesimulator.a  
Please help me .Thanks in advance.

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [January 12, 2015, 12:56am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/2 "2015-01-12T00:56:00Z")

</div>

arm64 can only be used for devices and x86\_64 can only be used for the simulator. It looks like the two may be mixed up in your project? Can you confirm?

---

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 14, 2015, 12:13pm UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/3 "2015-01-14T12:13:39Z")

</div>

> [@](#):
>
> arm64 can only be used for devices and x86\_64 can only be used for the simulator. It looks like the two may be mixed up in your project? Can you confirm?

Thanks for your reply  
I am sorry, I could not understand what you meant and I am new to iOS development. Could you please explain little more.

In my project I have set the Architectures like as follows

Architectures : Standard Architectures (armv7, arm64)  
Valid Architectures : armv7, arm64

---

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 14, 2015, 12:14pm UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/4 "2015-01-14T12:14:43Z")

</div>

Does FMOD Framework support 64-bit architecture in ios

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [January 15, 2015, 9:39pm UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/5 "2015-01-15T21:39:32Z")

</div>

Yes, FMOD supports 64bit on iOS. Make sure you are linking the “\_iphoneos” library not the “\_iphonesimulator” library when compiling for the device.

---

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 19, 2015, 4:27am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/6 "2015-01-19T04:27:08Z")

</div>

Thank you, but i do not know where to give the link  
I have the following files inside my project folder …/project/api/lib libfmodexL\_iphoneos.a,libfmodexL\_iphonesimulator.a,libfmodex\_iphoneos.a,  
libfmodex\_iphonesimulator.a,libfmodex.dylib  
which file should i choose and where should i give the link?  
I am using the latest os yosemite.

---

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 20, 2015, 10:37am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/7 "2015-01-20T10:37:53Z")

</div>

Working well in iphone.  
what should i do to run in simulator?

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [January 21, 2015, 12:12am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/8 "2015-01-21T00:12:59Z")

</div>

When linking the FMOD library you can use -lfmod\_$PLATFORM\_NAME the variable $PLATFORM\_NAME will resolve to “iphoneos” when building for the device and “iphonesimulator” when building for the simulator.

---

<div class="post-metadata">

### Author: ![Selva](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Selva](https://qa.fmod.com/u/Selva)
#### Post date: [January 21, 2015, 8:37am UTC](https://qa.fmod.com/t/could-not-compile-in-xcode-6-with-arm64-architecture/11789/9 "2015-01-21T08:37:41Z")

</div>

I use -lfmod\_$PLATFORM\_NAME only but it is not working.
