I'm not sure if this is the right place to ask this, so I'm sorry if I'm using the wrong section. We're having troubles submitting our app to iTunes Connect, the email we got says:
Invalid Symlink - Your package contains a symbolic link 'PlugIns/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex' which resolves to a location '/Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex' that does not exist or is outside of the package.
I tried to reproduce the error by creating a blank Xcode project with the same settings as our project, but I couldn't get the same error from iTunes Connect. Does anyone have any idea why that symlink is being created? I checked the blank's project .ipa and it doesn't contain that symlink in that path, so that's obviosly wrong but I can't find the build setting/configuration that is creating the symlink.
I checked the xcodebuild output and I found this:
SymLink build/SetaWatchKitExtension.appex /Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SetaWatchKitExtension.appex
cd $REDACTED_PROJECT_PATH$
export PATH="/Applications/Xcode-7.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-7.1.app/Contents/Developer/usr/bin:$REDACTED_PATH_ENV_VARIABLE$"
/bin/ln -sfh /Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex /Users/$REDACTED_USER$/Documents/$REDACTED_PATH$/build/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex
Which seems to be fine, but somehow that symlink ends up inside the .ipa which is wrong. This occurs after Create product structure and before CompileSwiftSources during the watchkit extension build target step.
Any hints or help is greatly appreciated. I'm using Xcode 7.1.