Skip to main content
Known Participant
October 19, 2015
질문

ANE - Xcode 7 and .tbd

  • October 19, 2015
  • 1 답변
  • 1955 조회

Hey,

I'm updating an ANE to the latest SDK change. For this new version, I need to add a new lib: libxml2.dylib

So in my platform-ios.xml I've:

<linkerOptions> <option>–lxml2</option> </linkerOptions>

I can compile the ANE, but when exporting on my iPhone I got:
Compilation failed while executing : ld64
Packaging output:
ld: file not found: –lxml2
ld: file not found: –lxml2

It seems the .dylib is no more available through Xcode 7 (El Captain) too, in favor of .tbd files. So how do we update our build file for this new format?

I tried to copy/paste the libxml2.dylib at several places (not sure if the final location changed with El Captain) but without success, still the same issue.

Any ideas?

이 주제는 답변이 닫혔습니다.

1 답변

kheftel
Inspiring
October 19, 2015

In my ANE, I only use one .dylib, and my syntax is different:

<option>-weak_library /usr/lib/libsqlite3.dylib</option>

As a caveat, I'm not using Xcode 7, and I'm still on AIR SDK 16, so this may not help you.

Aymeric-작성자
Known Participant
October 20, 2015

Thanks for your answer. Well, if I do that, no error when compiling the ANE, but for the IPA:

Packaging failed!

Packaging error message:

Compilation failed while executing : ld64

Packaging output:

ld: warning: ignoring file /usr/lib/libxml2.dylib, missing required architecture armv7 in file /usr/lib/libxml2.dylib (2 slices)

ld: warning: ignoring file /usr/lib/libxml2.dylib, missing required architecture arm64 in file /usr/lib/libxml2.dylib (2 slices)

Undefined symbols for architecture armv7:

  "_xmlFreeDoc", referenced from:

...

kheftel
Inspiring
October 20, 2015

sounds like it's missing the dylib at ipa compile time. Are you pointing flash builder to the location of the iOS SDK you're using?