umbrella header 'realm.h' not found after installing xcode 10 - swift

After updating to xcode 10, am getting the below error when I compile:
"umbrella header 'realm.h' not found"
Can anyone help me?

I solved this problem by switching build system:
Open File -> Xcode Workspace Settings
Switch Build System to "Legacy Build System".

Related

Could not build a module

I have faced with such error while building the project:
Developer/SDKs/iPhoneOS12.4.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
It can be solved in two ways.
1)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
go to that path and replace the frameworks folder from another mac on which xcode is installed.
2)clean that and build again and again might solve your problem.

Cannot build any Swift project at all due to strange error about MacOSX10.11.sdk

I'm running macOS 10.12.3 with Xcode 8.3.
I cannot build any macOS Swift projects with it.
If I create a new Cocoa application Xcode project and set it to use Swift, when I try to compile it, I immediately get the following error in the "check dependencies" phase:
error: There is no SDK with the name or path '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
I have no idea what's going wrong!
The only clue I have is that earlier I created a symlink with the path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk that pointed to MacOSX.sdk in order to fix an issue where an older build of Qt that required an SDK with that path. However, deleting the symlink has no effect.
I can build Swift projects that targeting other platforms like iOS. Just not macOS.
Help!
try running this command then reopening the project
(Xcode uses xtools in the command line to build its projects)
sudo xcode-select -switch /path/to/file/
(by default the path is)/Applications/Xcode.app/
look at this pic
saw it here yesterday

Xcode build Perfect failure -- COpenSSL not found

Xcode: 8.0
Swift toolchain: 3.0 release
Perfect: .Package(url:"https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2, minor: 0),
There is fine to run swift build in terminal.
But I'm run swift package generate-xcodeproj and open project with Xcode, Run it, then get error when build PerfectNet framework.
ld: library not found for -lCOpenSSL for architecture x86_64
You need to add the following line to your project's (not target) "Library Search Paths" setting: "$(PROJECT_DIR)/**" (including quotes).
Unfortunately, as for now, you need to do that each time you add a depedency and regenerate project as a result.
Update to Xcode 8.1, which fixes this particular issue when generating project files.

error in compiling .xcdatamodel

i have xcode 4.3 with ios 5.1 and trying to compile and run the project, but it gives error:
Command /Applications/Xcode.app/Contents/Developer/usr/bin/momc failed with exit code 6
i found something in "Data Model Version Compile".. error after upgrading to Lion (Xcode4.1) but it doesn't provide me any suitable solution. It say's to delete unnecessary .xcdatamodel-directories and i did, but i still stuck up there with same issue. Other thing i found that the extension is changed in new xcode its '.xcdatamodeld' instead of '.xcdatamodel'. I copied content content of '.xcdatamodel' file and put in to '.xcdatamodeld' and added to xcode but it gave error at some where else that persistence store might exist. what should i do to run this project..
thanks in advance!!!

Selenium for iPhone emulator compile error

when compiling the code for iWebDriver.xcodeproj I get the following error
error: There is no SDK with the name or path
'/Users/sqaresources/svn_projcts/trunk/iphone/lib/buildtime-src/cocoahttpserver/iphonesimulator3.2'
the following warnings are also shown
Missing SDK in target CocoaHTTPServer: iphonesimulator3.2
Missing SDK in target CocoaHTTPServer: iphoneos3.1.2
I'm running OSX 10.7, Xcode 4.1
Please let me know if there is anything that I can do for this issue.
Thank you
To resolve that problem, navigate to iphone-->lib-->buildtime-src-->cocoahttpserver-->CocoaHTTPServerLibrary.xcodeproj
Open CocoaHTTPServerLibrary.xcodeproj in your xcode (Make sure other instances are closed). And navigate to Build settings and change the 'BaseSDK' to 'Latest iOS(iOS4.3)'.
This should resolve the problem.....