realm-swift: error: could not build Objective-C module 'Realm'
Hi,
I was friendly told in https://github.com/realm/realm-cocoa/issues/1280 to open a new issue, since that one was already closed (it doesn’t appear to be solved).
Goals
Use realm in a framework target
Expected Results
Compiles
Actual Results
Doesn’t compile:
/xxxxxx/Pods/Realm/Realm/module.modulemap:2:21: Umbrella header ‘Realm.h’ not found Could not build Objective-C module ‘Realm’
Steps to Reproduce
Podfile:
use_frameworks!
#framework
target 'Providers' do
pod 'QorumLogs'
pod 'Alamofire', '~> 4.0'
pod 'Valet'
pod 'RealmSwift'
pod 'Reachability', '~> 3.2'
pod 'Starscream'
end
target 'my_ios_target' do
platform :ios, '8.0'
pod 'SwiftValidator', :git => 'https://github.com/i-schuetz/SwiftValidator.git', :branch => 'remove_delegate_callback'
pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'
pod 'Google/SignIn'
pod 'SwipeView', '~> 1.3.2'
pod 'CMPopTipView', '~> 2.0'
pod 'KLCPopup', '~> 1.0'
pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
pod 'HockeySDK'
pod 'QorumLogs'
end
target 'my_osx_target' do
platform :osx, '10.10'
pod 'Nimble', '~> 5.0.0'
end
#performance
post_install do |installer|
puts("Update debug pod settings to speed up build time")
Dir.glob(File.join("Pods", "**", "Pods*{debug,Private}.xcconfig")).each do |file|
File.open(file, 'a') { |f| f.puts "\nDEBUG_INFORMATION_FORMAT = dwarf" }
end
end
Version of Realm and Tooling
ProductName: Mac OS X ProductVersion: 10.12.1 BuildVersion: 16B2555
/Applications/Xcode.app/Contents/Developer Xcode 8.1 Build version 8B62
/Users/xxxxxx/.rbenv/shims/pod 1.2.0.beta.1 Realm (2.1.1) RealmSwift (2.1.1)
/bin/bash GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
/usr/local/bin/carthage 0.18.1 (not in use here)
/usr/bin/git git version 2.9.3 (Apple Git-75)
Additional notes
-
I’m moving part of my code to a framework (embedded). Before of this everything (same code, dependencies/versions, environment) was working.
-
None of the solutions from https://github.com/realm/realm-cocoa/issues/1280 helped.
Thanks!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (2 by maintainers)
I’m getting the same error as @jeffreybergier, running Cocoapods 1.1.1. My headers are set to Public, but that didn’t change anything. I’m getting this error only after including RLMSupport.swift.