Fixed
Status Update
Comments
dp...@gmail.com <dp...@gmail.com> #2
To be fair, this doesn't work with Xcode 6.4, either. Giant pain, though.
br...@google.com <br...@google.com>
de...@gmail.com <de...@gmail.com> #3
Same issue, seriously inconvenient.
ch...@gmail.com <ch...@gmail.com> #4
Same here. Has taken me DAYS to realize this was the issue. I've been reading through build settings and flags for hours, and I've spent more hours looking at the few stackoverflow posts with similar issues dates way back. I've recreated my projects, I've been reinstalling pods, I've been doing pretty much every goddamn thing I could think of. And now it appears that the import GoogleMaps is the villain. I've been developing my app for weeks without using the debugger...
so...@gmail.com <so...@gmail.com> #5
I've been having the same issues. Developing without a debugger is driving me crazy.
ch...@gmail.com <ch...@gmail.com> #6
Remove all the "import GoogleMaps" and clean your build and it should show the debugger once more. However, if you really need Google Maps while developing, it won't help of course. I'm a bit lucky since I only need Google Maps for a certain feature in my app which is already working, so I just removed Google Maps temporarily and continue with the other features in the app.
dp...@gmail.com <dp...@gmail.com> #7
So my team has found the following workaround:
* Add an Objective-C bridging header to your project if you don't already have one. (Easiest way to do this is add a dummy Objective-C class and let Xcode auto-create one, then delete the class.)
* Add "#import <GoogleMaps/GoogleMaps.h>" to the bridging file
* Remove "import GoogleMaps" from all the relevant Swift files.
Once we did that, debugging began working properly again.
Google folks, this is still a bug in the framework, and it may make sense to update the SDK documentation until this is fixed.
I've updated my sample project with the fix:https://github.com/dpassage/swift-google-map
* Add an Objective-C bridging header to your project if you don't already have one. (Easiest way to do this is add a dummy Objective-C class and let Xcode auto-create one, then delete the class.)
* Add "#import <GoogleMaps/GoogleMaps.h>" to the bridging file
* Remove "import GoogleMaps" from all the relevant Swift files.
Once we did that, debugging began working properly again.
Google folks, this is still a bug in the framework, and it may make sense to update the SDK documentation until this is fixed.
I've updated my sample project with the fix:
br...@google.com <br...@google.com> #8
I've raised a radar with Apple about lldb and debugging umbrella header based modules.
In the mean time, this is the best work around we have.
In the mean time, this is the best work around we have.
sa...@gmail.com <sa...@gmail.com> #9
I updated my xcode to 7.1 and I started seeing below error.
Anyone can help?
"Could not build Objective-C module 'GoogleMaps'"
Anyone can help?
"Could not build Objective-C module 'GoogleMaps'"
ca...@gmail.com <ca...@gmail.com> #10
ma...@gmail.com <ma...@gmail.com> #11
ni...@gmail.com <ni...@gmail.com> #13
Had the same issue with Xcode 7.3.1 / real device with iOS 11
But I noticed that the problem is marked red as exception while debugging but not break the runtime of the app. Take off cable and run the app again - solved for me
But I noticed that the problem is marked red as exception while debugging but not break the runtime of the app. Take off cable and run the app again - solved for me
Description
Reproduction: Clone
Now set a breakpoint in ViewController.viewDidLoad() and run again. When the debugger stops, the view on the left side only shows the symbol names with no value information, no exposure triangle, etc. If you type "p self" at the lldb command, you a bunch of errors about the include files; see below.
To be fair, this may be an Xcode bug; I'm filing with Apple as well.
(lldb) p self
warning: Swift error in module SwiftMaps:
Swift had fatal errors constructing the ast context for this module: <module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:13:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSAddress.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:14:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSAutocompleteFilter.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:15:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSAutocompleteMatchFragment.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:16:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSAutocompletePrediction.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:17:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSCALayer.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:18:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSCameraPosition.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:19:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSCameraUpdate.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:20:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSCircle.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:21:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSCoordinateBounds.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:22:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSGeocoder.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:23:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSGeometryUtils.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:24:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSGroundOverlay.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:25:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSIndoorBuilding.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:26:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSIndoorDisplay.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:27:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSIndoorLevel.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:28:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSMapLayer.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:29:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSMapView+Animation.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:30:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSMapView.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h"
^
/Users/davidp/dev/swift-google-map/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:31:9: error: include of non-modular header inside framework module 'GoogleMaps'
#import <GoogleMaps/GMSMarker.h>
^
too many errors emitted, stopping nowcould not build Objective-C module 'GoogleMaps'
Debug info from this module will be unavailable in the debugger.
error: Error in auto-import:
failed to get module 'SwiftMaps' from AST context
(lldb)
Operating system version: OX x 10.10.5; iOS 8.4
Xcode version: 7 beta 6
Google Maps SDK for iOS version: 1.10.2
Hardware model: iPhone 5S
*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************