Build input file cannot be found after adding watch target

The project I am working includes both safari and iMessage extensions. Now I am trying to add watch extension too. Without watch extension it compiles without an error(compiling with new build system not legacy). However after adding the watch target I started getting build input file cannot be found error for watch extension appex.


I tried changing build system, changing valid architectures but none of them worked.


I do have another project with exact same project settings and it works fine.


I am using Xcode 10.3(also getting same error with Xcode 11) Project deployment target is iOS 9.0 Watch app deployment target is watchOS 5.0


Any help will be appreciated.


Replies

The error details are bellow.

CopySwiftLibs /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch\ Extension.appex (in target: ReversoWatch Extension)

cd /Users/dogusyigitozcelik/Desktop/Development/ReversoApp/Branches/v9.0.1/ReversoContext

export CODESIGN_ALLOCATE=/Users/dogusyigitozcelik/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

export DEVELOPER_DIR=/Users/dogusyigitozcelik/Downloads/Xcode-beta.app/Contents/Developer

export SDKROOT=/Users/dogusyigitozcelik/Downloads/Xcode-beta.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator6.0.sdk

builtin-swiftStdLibTool --copy --verbose --sign - --scan-executable /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch\ Extension.appex/ReversoWatch\ Extension --scan-folder /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch\ Extension.appex/Frameworks --scan-folder /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch\ Extension.appex/PlugIns --platform watchsimulator --toolchain /Users/dogusyigitozcelik/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch\ Extension.appex/Frameworks --strip-bitcode --strip-bitcode-tool /Users/dogusyigitozcelik/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Intermediates.noindex/ReversoContext.build/Debug-watchsimulator/ReversoWatch\ Extension.build/SwiftStdLibToolInputDependencies.dep --filter-for-swift-os


error: Build input file cannot be found: '/Users/dogusyigitozcelik/Library/Developer/Xcode/DerivedData/ReversoContext-ekesforwrbxiabawqnxlcutggwoy/Build/Products/Debug-watchsimulator/ReversoWatch Extension.appex/ReversoWatch Extension' (in target 'ReversoWatch Extension')

Maybe a trivial suggestion. Did you perform a clean build folder ?