• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

iOS native extension - cannot package app

Explorer ,
Nov 26, 2014 Nov 26, 2014

Copy link to clipboard

Copied

I am trying to integrate the MixPanel SDK as a native extension to our project. I can compile the .ANE fine, but when I try to package my application I get the following error:

Undefined symbols for architecture armv7: utf8_nextCharSafeBody, referenced from:_validate_dispatch_data_partial_string from libPods-MixPanel.a(MPVWebSocket.o)

the library is open source, heres this file:

mixpanel-iphone/MPWebSocket.m at master · mixpanel/mixpanel-iphone · GitHub

The definition of this function comes from this import:

#import <unicode/utf8.h>

which comes from usr/incude -> unicode -> utf8.h according to XCode. 

How can I include this file? Do I need to include it at all?

My platform.xml looks like this:

<platform xmlns="http://ns.adobe.com/air/extension/15.0">

   <sdkVersion>6.0</sdkVersion>

   <linkerOptions>

   <option>-ios_version_min 6.0</option>

   <option>-framework Accelerate</option>

   <option>-framework CoreTelephony</option>

   <option>-framework Security</option>

   </linkerOptions>

</platform>

TOPICS
Development

Views

507

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Nov 27, 2014 Nov 27, 2014

I just figured out what was wrong, I needed to add the unicode lib as a dynamic library to my project to LinkerOptions:

    <!-- to link with the libicucore.dylib No idea why its called actually -licucore -->

    <option>-licucore</option>

Votes

Translate

Translate
Explorer ,
Nov 27, 2014 Nov 27, 2014

Copy link to clipboard

Copied

LATEST

I just figured out what was wrong, I needed to add the unicode lib as a dynamic library to my project to LinkerOptions:

    <!-- to link with the libicucore.dylib No idea why its called actually -licucore -->

    <option>-licucore</option>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines