# Example project not launching on iOS simulator (on Mac M2)

**URL:** <https://forum.csound.com/t/example-project-not-launching-on-ios-simulator-on-mac-m2/1648>\
**Category:** Developers\
**Created:** [May 2, 2024, 3:23pm UTC](https://forum.csound.com/t/example-project-not-launching-on-ios-simulator-on-mac-m2/1648 "2024-05-02T15:23:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moplat](https://forum.csound.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@moplat](https://forum.csound.com/u/moplat)\
**Post date:** [May 2, 2024, 3:23pm UTC](https://forum.csound.com/t/example-project-not-launching-on-ios-simulator-on-mac-m2/1648/1 "2024-05-02T15:23:42Z")

</div>

Hello,

I’m trying to work with Csound on iOS. The example project provided with the SDK works fine on my iPad, however I can’t make it work on the simulator.  
Here is the error Xcode gives me :

```csound
Building for 'iOS-simulator', but linking in object file (...../Csound/csound-iOS-6.18.0/Csound iOS Obj-C Examples/csound-iOS/libs/libcsound.a[arm64][2](auxfd.o)) built for 'iOS'

```

Does anyone know how to make it work, or how to get a compatible csound.a library ?  
Thanks,  
Morgane

---

<div class="post-metadata">

**Author:** ![rory](https://forum.csound.com/user_avatar/forum.csound.com/rory/32/7_2.png) [@rory](https://forum.csound.com/u/rory)\
**Post date:** [May 2, 2024, 5:49pm UTC](https://forum.csound.com/t/example-project-not-launching-on-ios-simulator-on-mac-m2/1648/2 "2024-05-02T17:49:52Z")

</div>

iOS and iOS-simulator use different architectures. Check out the iOS builds in Csound github actions. They now include an xcframework that includes slices for both iOS and iOS simulator.

Scroll to the bottom of [this](https://github.com/csound/csound/actions/runs/8680492914) build for example and you’ll find an iOS zip with pre-built binaries.

---

<div class="post-metadata">

**Author:** ![moplat](https://forum.csound.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@moplat](https://forum.csound.com/u/moplat)\
**Post date:** [May 27, 2024, 8:35am UTC](https://forum.csound.com/t/example-project-not-launching-on-ios-simulator-on-mac-m2/1648/3 "2024-05-27T08:35:06Z")

</div>

I finally made it work on the simulator on my M-based Mac by using Rosetta.  
See : [https://armen-mkrtchian.medium.com/run-rosetta-simulator-on-xcode-14-3-381d341364ee](https://armen-mkrtchian.medium.com/run-rosetta-simulator-on-xcode-14-3-381d341364ee)

So it was nothing to do with the way Csound libraries were shipped, even though I spent a lot of time trying stuff with xcframework.

Thanks again for replying Rory, and I hope this will help somebody else.
