Skip to content

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

@CharStiles

Description

@CharStiles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions