Installation Failed "Invalid argument" when trying to run Today application extension
Try this:
- Quit Xcode
- Clean out ~/Library/Developer/Xcode/DerivedData manually
- rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
- iOS Simulator > Reset Content and Settings
Maybe you are bundling a conflicting "contents" referenced (blue) folder.
Hint: change the name of said "contents" folder :)