logo
down
shadow

Swift - Unable to open file in target Xcode 10


Swift - Unable to open file in target Xcode 10

By : JimM
Date : November 24 2020, 03:41 PM
this will help In File -> Workspace setting -> select Legacy Build System
make sure you have open .xcworkspace file and pod installed properly
code :


Share : facebook icon twitter icon
XCode cannot find auto-generated swift header moduleName-Swift.h in pch file in duplicate target

XCode cannot find auto-generated swift header moduleName-Swift.h in pch file in duplicate target


By : said
Date : March 29 2020, 07:55 AM
To fix this issue The problem is that the duplicate target has a different moduleName.
I had to add a C-flag in the duplicate target and use this in Prefix.pch. (A User-Defined Setting doesn't get seen when parsing the pch file.)
code :
#ifdef DEVLOPMENT_SERVER
    #import "<duplicateModuleName>-Swift.h"
#else
    #import "<moduleName>-Swift.h"
#endif
Module file's deployment target is ios9.0 v9.0 with Xcode 7 / Swift 2

Module file's deployment target is ios9.0 v9.0 with Xcode 7 / Swift 2


By : Vijay Jamadagni
Date : March 29 2020, 07:55 AM
Any of those help I have a project using some modules that I have installed via cocoapods. One of them is Charts. In order to migrate my project from Swift 1.2 to Swift 2 I have gone through the wizard that comes up when first opening the project with Xcode 7. The Charts module is already available for Swift 2, and I have changed my Podfile to contain the following in order to upgrade to this newer and not yet officially released version: , Same, in my case
Selected TARGETS,
Unable to open a file using Open in... since Xcode 9.3

Unable to open a file using Open in... since Xcode 9.3


By : Davide C
Date : March 29 2020, 07:55 AM
To fix this issue Prior to Xcode 9.3 I had no issues importing a file, now when attempting to open a file using open in the app crashes with , Just by luck I came across this method
code :
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {

      // read in your file 

}
Build failed: unable to open file (in target '' in project '')(in target '')

Build failed: unable to open file (in target '' in project '')(in target '')


By : user3037094
Date : March 29 2020, 07:55 AM
I wish did fix the issue. It looks like an issue with cocoPods not being installed. If you install cocoPods that should resolve it for you.
Xcode Unable to add test target to existing swift project - Target to be tested is grayed out

Xcode Unable to add test target to existing swift project - Target to be tested is grayed out


By : PaulW
Date : March 29 2020, 07:55 AM
With these it helps In Xcode 10.2.1, with your project open, click on the diamond with a dash in it:
Related Posts Related Posts :
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org