Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS compilation error #1

Closed
flashup opened this issue Aug 19, 2019 · 3 comments
Closed

iOS compilation error #1

flashup opened this issue Aug 19, 2019 · 3 comments

Comments

@flashup
Copy link

flashup commented Aug 19, 2019

Hello, first of all, thanks for the library 😊

Unfortunately, I can't build my app with it for iOS target (Android target builds properly).
My configurations:

MacBook Pro 2019
Haxe RC2
Lime 7.5.0
OpenFL 8.9.1
HXCPP 4.0.19

Command:
lime test ios -Dsource-header=haxe -release -v

Error what I get:

Undefined symbols for architecture arm64:
  "_SecRandomCopyBytes", referenced from:
      +[AppsFlyerAES128Crypto randomDataOfLength:] in AppsFlyerLib(AppsFlyerAES128Crypto.o)
  "_SecItemUpdate", referenced from:
      -[AppsFlyerKeychainWrapper update::] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrGeneric", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrAccessible", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecRandomDefault", referenced from:
      +[AppsFlyerAES128Crypto randomDataOfLength:] in AppsFlyerLib(AppsFlyerAES128Crypto.o)
  "_kSecAttrAccount", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecMatchLimitOne", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecMatchLimit", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecReturnData", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_CFNetworkCopySystemProxySettings", referenced from:
      +[AppsFlyerUtils isVPNConnected] in AppsFlyerLib(AppsFlyerUtils.o)
  "_kSecClassGenericPassword", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrService", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecAttrAccessibleAlwaysThisDeviceOnly", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecClass", referenced from:
      -[AppsFlyerKeychainWrapper prepareForKeychain:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_SecItemCopyMatching", referenced from:
      -[AppsFlyerKeychainWrapper getObject:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_kSecValueData", referenced from:
      -[AppsFlyerKeychainWrapper setObject:withData:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
      -[AppsFlyerKeychainWrapper update::] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_SecItemDelete", referenced from:
      -[AppsFlyerKeychainWrapper remove:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_SecItemAdd", referenced from:
      -[AppsFlyerKeychainWrapper setObject:withData:] in AppsFlyerLib(AppsFlyerKeychainWrapper.o)
  "_OBJC_CLASS_$_NMEAppDelegate", referenced from:
      l_OBJC_$_CATEGORY_NMEAppDelegate_$_UIApplicationDelegate in libappsflyerextension.a(7f370432_AppsFlyerAppDelegate.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Maybe you could help me? 😞

@flashup
Copy link
Author

flashup commented Sep 5, 2019

To fix these errors you need to add following dependencies in include.xml for iOS:

<dependency name="Security.framework" />
<dependency name="CFNetwork.framework" />

@flashup flashup closed this as completed Sep 5, 2019
@Beeblerox
Copy link
Contributor

@flashup thank you for the info!

@TheMates
Copy link

TheMates commented Aug 6, 2022

I was dealing with the same error in a completely different project, and including Security.framework fixed my issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants