07-20-2023, 11:13 AM
For Xcode 8, some stale products will be removed from derived data folder refer to [this solution](
Apple: [**In macOS 10.12 and later, Xcode cleans up stale derived data, precompiled headers, and module caches. (23282174)**
](
[**The Xcode build system supports stale file removal of some types of build artifacts that were produced in a previous build, but have since been removed from the project.**](
Base on the author's thought, I found this build log from my case.
Remove stale build products
/bin/rm -rf /Users/usename/Library/Developer/Xcode/DerivedData/myapp-esvvhwwwwngijeemhatmklwzoxnb/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks/AliyunVodPlayerSDK.framework
/bin/rmdir /Users/usename/Library/Developer/Xcode/DerivedData/myapp-esvvhwwwwngijeemhatmklwzoxnb/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks
After creating a new copy file phase and copy the target *stale* framework to *Frameworks* destination, the above removal log disappears after rebuilding.
Just clarify my situation and reason, hope it's helpful for someone.
[To see links please register here]
).Apple: [**In macOS 10.12 and later, Xcode cleans up stale derived data, precompiled headers, and module caches. (23282174)**
](
[To see links please register here]
)[**The Xcode build system supports stale file removal of some types of build artifacts that were produced in a previous build, but have since been removed from the project.**](
[To see links please register here]
)Base on the author's thought, I found this build log from my case.
Remove stale build products
/bin/rm -rf /Users/usename/Library/Developer/Xcode/DerivedData/myapp-esvvhwwwwngijeemhatmklwzoxnb/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks/AliyunVodPlayerSDK.framework
/bin/rmdir /Users/usename/Library/Developer/Xcode/DerivedData/myapp-esvvhwwwwngijeemhatmklwzoxnb/Build/Products/Debug-iphonesimulator/myapp.app/Frameworks
After creating a new copy file phase and copy the target *stale* framework to *Frameworks* destination, the above removal log disappears after rebuilding.
Just clarify my situation and reason, hope it's helpful for someone.