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

Xcode 15 linker warnings #251

Open
kattouf opened this issue Aug 16, 2023 · 9 comments
Open

Xcode 15 linker warnings #251

kattouf opened this issue Aug 16, 2023 · 9 comments
Assignees
Labels

Comments

@kattouf
Copy link

kattouf commented Aug 16, 2023

Report

SDK Version

6.12.1
integrated via CocoaPods (AppsFlyerFramework/Dynamic)

What did you do?

Compile iOS project with new Xcode 15.0 Beta 6 (15A5219j)

What did you expect to happen?

Compilation completes without warnings

What happened instead?

Compilation competes with following warnings:

ld: warning: duplicate LC_RPATH are deprecated ('@executable_path/Frameworks')
ld: warning: duplicate LC_RPATH are deprecated ('@loader_path/Frameworks')

Please provide any other relevant information.

I manually checked arm64 binary to confirm the warning by printing load commands:

otool -arch arm64 -l Pods/AppsFlyerFramework/binaries/xcframework/dynamic/AppsFlyerLib.xcframework/ios-arm64_armv7/AppsFlyerLib.framework/AppsFlyerLib | rg -A 2 -B 1 LC_RPATH

And got output, where we see that @executable_path/Frameworks and @loader_path/Frameworks are defined twice:

Load command 18
          cmd LC_RPATH
      cmdsize 40
         path @executable_path/Frameworks (offset 12)
Load command 19
          cmd LC_RPATH
      cmdsize 40
         path @loader_path/Frameworks (offset 12)
Load command 20
          cmd LC_RPATH
      cmdsize 40
         path @executable_path/Frameworks (offset 12)
Load command 21
          cmd LC_RPATH
      cmdsize 40
         path @loader_path/Frameworks (offset 12)

Initially Xcode doesn't specify which binary generates this warning, to find out it I copy compile command from Xcode's build log and run it directly in the terminal, adding argument for additional linker logging:
-t Logs each file (object, archive, or dylib) the linker loads. Useful for debugging problems with search paths where the wrong library is loaded.

 /Applications/Xcode-15.0.0-Beta.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -t ....very long args list....
...
/Users/kattouf/Library/Developer/Xcode/DerivedData/MyApp-cwrffmwjdlzeiyarzpcebcovosub/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/AppsFlyerFramework/Dynamic/AppsFlyerLib.framework/AppsFlyerLib
ld: warning: duplicate LC_RPATH are deprecated ('@executable_path/Frameworks')
ld: warning: duplicate LC_RPATH are deprecated ('@loader_path/Frameworks')
...
@donnywdavis
Copy link

I have noticed the same warning as well on beta 8, but only after updating to version 6.12.2. If I use version 6.11.0 with Xcode 15 beta 8 then I do not see this warning.

@kattouf
Copy link
Author

kattouf commented Sep 13, 2023

Xcode 15 is coming soon, do you have any updates?

@vg-identance
Copy link

bump

@af-obodovskyi
Copy link
Contributor

@kattouf we will fix this issue in the upcoming release of the AppsFlyerSDK

@omarzl
Copy link

omarzl commented Oct 2, 2023

bump

@jszumski
Copy link

jszumski commented Oct 3, 2023

I'm also interested in a fix here

@FurkanEmiroglu
Copy link

I'm waiting for a solution too.

@ZevEisenberg
Copy link

@kattouf
Copy link
Author

kattouf commented Nov 28, 2023

bump

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

No branches or pull requests

8 participants