iosxcodebuildsharekit

PBXCp Error ShareKit.bundle is not built


I'm working on a rather old iOS Xcode project using ShareKit. I have updated ShareKit to the newest available version following the installation guideline.

After working through all of the update issues and errors I've hung up with this PBXCp Error now.

CpResource /Users/[...]/Library/Developer/Xcode/DerivedData/[...]-bzxpcpjwjqtbdmaryzugwajcrijj/Build/Intermediates/ArchiveIntermediates/[...]/BuildProductsPath/Release-iphoneos/ShareKit.bundle /Users/[...]/Library/Developer/Xcode/DerivedData/[...]-bzxpcpjwjqtbdmaryzugwajcrijj/Build/Intermediates/ArchiveIntermediates/[...]/InstallationBuildProductsLocation/Applications/[...].app/ShareKit.bundle
cd /Users/[...]/front-mobile/src/iOS
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/[...]/Library/Developer/Xcode/DerivedData/[...]-bzxpcpjwjqtbdmaryzugwajcrijj/Build/Intermediates/ArchiveIntermediates/[...]/BuildProductsPath/Release-iphoneos/ShareKit.bundle /Users/[...]/Library/Developer/Xcode/DerivedData/[...]-bzxpcpjwjqtbdmaryzugwajcrijj/Build/Intermediates/ArchiveIntermediates/[...]/InstallationBuildProductsLocation/Applications/[...].app

error: /Users/[...]/Library/Developer/Xcode/DerivedData/[...]-bzxpcpjwjqtbdmaryzugwajcrijj/Build/Intermediates/ArchiveIntermediates/[...]/BuildProductsPath/Release-iphoneos/ShareKit.bundle: No such file or directory

What I perceive is that at the clean project state the ShareKit.bundle file and all other files beneath ShareKit.xcodeproj/Products/ are red (meaning unbuilt?).

After building only the files ShareKit.bundle, libBuffer.a and Static Library Tests.xctest remain red. To me as a non iOS and Xcode professional it seems that the ShareKit.bundle file is just not being built and thus is not available for the Copy Bundle Resources section of my project's Build Phase.

See a screenshot after a build attempt.

How can i find out, why the ShareKit.bundle is not built?

How can i possibly fix the missing build?


Solution

  • I had this issue while adding resources to a static library.I think this can be a solution to your issue too. I think the bundle and .lib were not being built. I clicked on "edit schemes"(edit the scheme) and under the “Build” tab click the plus at the bottom and add the library target and library resources target.

    For more info please refer this http://www.galloway.me.uk/tutorials/ios-library-with-resources/