Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

ios build failure on adding Startapp plugin
Started by shashwat Oct 19 2018 05:35 AM

2 replies to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 21 posts
  • Corona SDK

As the title says, I am not able to build for ios if I add that plugin in my build.settings. 


The build log on the console  says there's an error linking the app and if I remove that plugin from my build settings, things go back to normal. 


I am pasting the response from build below and it appears the system has some difficulty finding the correct library ( I remember seeing similar errors back when I used to work with xcode but I'm not an expert)

<result>ld: library not found for -lSTATIC_LIB_NAME
clang: error: linker command failed with exit code 1 (use -v to see invocation)</result>
ERROR: Builder failed: ld: library not found for -lSTATIC_LIB_NAME
clang: error: linker command failed with exit code 1 (use -v to see invocation)
BUILD ERROR: There was a problem linking the app.

I should clarify that the problem is not with my code as I am not invoking the associated scripts-- like I said above, if I remove the plugin from my build, things go through fine. 


I use the following publisher ID as per the APIs to include the plugin

   ["plugin.startapp"] =
            publisherId = "com.startapp"

I am away from work for a couple of days and unfortunately don't have an Android device to test. Any help would be much appreciated. 


[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,471 posts
  • Enterprise

StartApp is Android only. There appears to be an issue with the stub plugin for iOS that should just say "The plugin isn't available" and should prevent errors. I'll get engineering to look into it.


To prevent the problem temporarily, you can add this to build settings:

        ["plugin.startapp"] =
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }

and in your code, test to see if you're on Android or not and wrap your startapp calls in an "if" test to see if you're on Android or not.



[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Contributor

  • 258 posts
  • Corona Staff

Hey there,

We've fixed ios/iossim stubs and everything seems to be setted up right, but since the StartApp team is responsible for a sources fixes/updates, we can't check it on our test sample for that plugin.


Can you confirm that the issue is fixed for you?