cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

iOS Cocoapod Static Library Does Not Load the Header File

jacob_payne
Inactive

Is there a way to add the ADK header file to the podspec for the static library? My client wants to use the static library and provide their devs the option of manual invocation of the ADK methods, but apparently when the static library is loaded via Cocoapods, the header file does not come down with it, leaving manual invocation impossible because of the missing header.

Kind Regards,

Jake

7 REPLIES 7

mohamed_nassar
Newcomer

Hello Jake,

The cocoapods installation gets you the dynamic library. And it should include all necessary header files to allow you to use manual invocation. Are you sure you used it correctly?

The podfile line should look something like (where version is 6.5 or 7.0):

pod 'Dynatrace', '~> version'

Then you should perform pod install to install the library.

You should then see something like this in your pods:

Hope this helps you with your problem.

asad_ali
Advisor

Mohammad

Follow up question on this:

With the dynamic library, we get the header file. What if the customer wants to use Cocoapd for Static library? Does the header file come with it? My investigation shows that the header file does not come with the static files wit Cocoapod.

Hello Asad,

As mentioned above by Patrick, there seems to be a problem with the static library indeed. Although the podspec specifies the header should be public and included, it is not. We will update you once this is handled.

harp
Dynatrace Pro
Dynatrace Pro

We are investigating why the header is not public for the static library. From our podspec configuration it should work and the header should be public, but it does not/no longer work as we also could reproduce the problem. We will provide an update if there is progress on this topic.

Hi Patrick,

Thank you very much for looking into this. The customer would very much like to use CocoaPods for the manual instrumentation, but they have to use the static version of the library as a security requirement.

Kind Regards,

Jake

harp
Dynatrace Pro
Dynatrace Pro

We found the problem and it will be fixed in the Dynatrace CocoaPod for public update 6.5.24 and 7.0.6 (estimated release first week of September 2017)

Hi Patrick,

That is great to hear! Thank you for getting this fixed so quickly! I will add one final comment once we have tested this and are running successfully.

Kind Regards,

Jake