# Adding additional Linker Flags to Simulator Builds - iOS Xcode

**URL:** <https://forums.solar2d.com/t/adding-additional-linker-flags-to-simulator-builds-ios-xcode/357069>\
**Category:** Native builds\
**Created:** [December 23, 2024, 6:30pm UTC](https://forums.solar2d.com/t/adding-additional-linker-flags-to-simulator-builds-ios-xcode/357069 "2024-12-23T18:30:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hraza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/c2a13f/32.png) [@hraza](https://forums.solar2d.com/u/hraza)\
**Post date:** [December 23, 2024, 6:30pm UTC](https://forums.solar2d.com/t/adding-additional-linker-flags-to-simulator-builds-ios-xcode/357069/1 "2024-12-23T18:30:25Z")

</div>

hi folks,

was wondering if anyone has any idea if this is possible ?

I am making a new plugin and the framework needs a specific linker flag else simulator build throws an error. Is there someway I can specify an additional linker flag as default to be run as part of the build process executed by Corona Simulator for iOS ? I can build fine already with Corona Native but wanted to make it into a plugin so reusable for all my apps.

For reference, here is the error thrown,

Undefined symbols for architecture arm64:  
“\_\_\_llvm\_profile\_runtime”, referenced from:

and needs this linker flag, -fprofile-instr-generate

As the build is run on server side, wasn’t sure if can specify anything for it, though I vaguely record a discussion on the forums on this.

Thanks for reading
