Hi jayantvarma
I get it working ONLY with this steps:
- Creating a framework testfwk, installing cocoapod Kingfisher in it, opening testfwk.xcworkspace bulding testfwk
- Adding testapp.xcodeproj to testfwk.xcworkspace, linking testfwk.framework to testapp and adding testfwk.framework to embedded binaries, buld testapp, it works
This is ok but i wanted to link testfwk.xcodeproj directly in testapp.xcodeproj to both keep developing the framework and test directly in testapp.
In this specifically case i get the followinf error that non appearsbefore i install the Pod in testfwk framewokr:
Apple Mach-O Linker (ld) Error Groupt the following error:
Ld /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos/testfwk.framework/testfwk normal arm64
cd /Users/davide/Documents/iOs/test/testfwk
export IPHONEOS_DEPLOYMENT_TARGET=11.4
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos -F/Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos -F/Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos/Kingfisher -filelist /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Intermediates.noindex/testfwk.build/Debug-iphoneos/testfwk.build/Objects-normal/arm64/testfwk.LinkFileList -install_name @rpath/testfwk.framework/testfwk -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/…/…/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=11.4 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Intermediates.noindex/testfwk.build/Debug-iphoneos/testfwk.build/Objects-normal/arm64/testfwk_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Intermediates.noindex/testfwk.build/Debug-iphoneos/testfwk.build/Objects-normal/arm64/testfwk.swiftmodule -framework Kingfisher -framework Pods_testfwk -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Intermediates.noindex/testfwk.build/Debug-iphoneos/testfwk.build/Objects-normal/arm64/testfwk_dependency_info.dat -o /Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos/testfwk.framework/testfwk
ld: warning: directory not found for option ‘-F/Users/davide/Library/Developer/Xcode/DerivedData/testapp2-czyttnrayvnpuvcbpqzdmyhjgujq/Build/Products/Debug-iphoneos/Kingfisher’
ld: framework not found Kingfisher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I think, in this case there is a problem linking pods because linking testfwk.xcodeproj (drag and drop to project navigator of testapp) it loose Pods referencesof the frameworks that ar not linked with testfwk.xcodeproj but contained instead in testfwk.xcworkspace in Pods module.
Do you have any idea how to achieve this?
Thank you