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

Build Failed " Libtool failed with a nonzero exit code" #1

Open
CharStiles opened this issue Nov 17, 2021 · 0 comments
Open

Build Failed " Libtool failed with a nonzero exit code" #1

CharStiles opened this issue Nov 17, 2021 · 0 comments

Comments

@CharStiles
Copy link

CharStiles commented Nov 17, 2021

Repro: followed instructions of installing NDI for Mac & iOS, then moving the .a file to the correct location and running the NDISenderExample from the workspace. Try to deploy & immediately build fails. Still fails when build folder is cleaned. I also tried deleting tbd and adding flag -lb (I think) to other linker flags, but that didnt fix it either.

Libtool /Users/lkg/Library/Developer/Xcode/DerivedData/NDISenderExample-ahthnslnzbbuskbrnywrsdihcqck/Build/Products/Debug-iphoneos/libNDIWrapper.a normal (in target 'NDIWrapper' from project 'NDIWrapper')
    cd /Users/lkg/dev/NDISenderExample/NDIWrapper
    export IPHONEOS_DEPLOYMENT_TARGET\=14.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -L/Users/lkg/Library/Developer/Xcode/DerivedData/NDISenderExample-ahthnslnzbbuskbrnywrsdihcqck/Build/Products/Debug-iphoneos -L/Users/lkg/dev/NDISenderExample/NDIWrapper/NDIWrapper/wrapper -filelist /Users/lkg/Library/Developer/Xcode/DerivedData/NDISenderExample-ahthnslnzbbuskbrnywrsdihcqck/Build/Intermediates.noindex/NDIWrapper.build/Debug-iphoneos/NDIWrapper.build/Objects-normal/arm64/NDIWrapper.LinkFileList -lndi_ios -dependency_info /Users/lkg/Library/Developer/Xcode/DerivedData/NDISenderExample-ahthnslnzbbuskbrnywrsdihcqck/Build/Intermediates.noindex/NDIWrapper.build/Debug-iphoneos/NDIWrapper.build/Objects-normal/arm64/NDIWrapper_libtool_dependency_info.dat -o /Users/lkg/Library/Developer/Xcode/DerivedData/NDISenderExample-ahthnslnzbbuskbrnywrsdihcqck/Build/Products/Debug-iphoneos/libNDIWrapper.a

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lndi_ios
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lndi_ios is not an object file (not allowed in a library)
Command Libtool failed with a nonzero exit code

Running in XCode Version 13.1 (13A1030d) onto an iPhone 12 pro 15.0
Thank you! Let me know if there is a solution & If I find one I will post here.

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

1 participant