× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

iOS - 'MyProject-Swift.h' file not found when running Unit Tests for Swift

Vaibhav Agarwal
Feb 21, 2015
<p><strong>"MyProject-Swift.h"</strong> file is generated at following path: </p> <p><code>"$(TARGET_TEMP_DIR)/../$(PROJECT_NAME).build/DerivedSources"</code></p> <p>I end up adding this to Header Search Paths for my Unit Test target.</p> <p>Also as @hyouuu pointed out about being the known issue, hopefully Apple will provide some good solution at their end. Until I believe we need to use this above solution.</p> <p><a href="https://developer.apple.com/library/mac/releasenotes/DeveloperTools/RN-Xcode/Chapters/xc6_release_notes.html">https://developer.apple.com/library/mac/releasenotes/DeveloperTools/RN-Xcode/Chapters/xc6_release_notes.html</a></p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/26473058/iOS%20-%20'MyProject-Swift.h'%20file%20not%20found%20when%20running%20Unit%20Tests%20for%20Swift/28138792">Stack Overflow</a>.</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus