iOS App with Static Lib ALWAYS crashes on Launch of Ad Hoc Archive Build. Cant reproduce in Xcode Debugger

后端 未结 4 1580
[愿得一人]
[愿得一人] 2020-12-09 06:20

We have an App built with a static Lib we are also building for distribution. The App and Lib run fine in Xcode debugger or when loaded on the device by Xcode debugging sess

4条回答
  •  既然无缘
    2020-12-09 06:46

    Figured it out!! after 4 days of banging heads on desk. We don't know exactly why it works but it does. In case it's helpful to others here are the settings that resolved it for us. Set these in the "Deployment" section of the Static Library Project's Build Settings:

    SET "STRIP LINKED PRODUCT" (STRIP_INSTALLED_PRODUCT) = NO
    SET "STRIP STYLE" = DEBUGGING SYMBOLS.
    

    We found this by trial and error but now notice that a few discussions online re setting up an Xcode project for building iOS static libraries use this setting. No discussion as to why, but there it is.

    If anyone has any thoughts on why these lib settings fix it you might want to comment on it here.

提交回复
热议问题