0

I have upgraded to Xcode 7.1 from 6.4 beta. Before the update, I used the "Google Mobile Ads" framework for my previous version of Xcode. After the upgrade, my project is telling me that there is "no such module 'GoogleMobileAds'". I use swift, if that matters at all.

Attempts:

I clean and build constantly, and so far no luck.

EDIT: I have upgraded the syntax to Swift 2 syntax and still have this issue.

I have been researching for a while and I'm kind of at a loss right now. Would anyone have any ideas? I feel like it may have to do with the paths, I'm not sure.


EDIT - Debugger:

2015-10-27 15:24:36.823 MyProject[704:10002] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "", "" )

Will attempt to recover by breaking constraint

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. 2015-10-27 15:24:36.824 My project[704:10002] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "", "" )

Will attempt to recover by breaking constraint

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in UIKit/UIView.h may also be helpful.

13
  • You have to update to Swift 2 syntax. What are the errors you get after running the migration? Commented Oct 26, 2015 at 2:13
  • I ran through the project with upgraded syntax, and well, turns out it now functions the same way with the old syntax of Xcode 7.1. Strange. However, it still says "No such module 'GoogleMobileAds'" in all of my swift files that have that import.
    – Tom F
    Commented Oct 26, 2015 at 3:01
  • Did you install it manually? Are you using CocoaPods or Carthage? Commented Oct 26, 2015 at 5:54
  • I am new to Swift and Xcode so I believe I have installed it manually, since I've never heard of either of those two. When it came to Xcode 6.4 beta, I just take the googlemobileads framework and drop it in the "link binary with libraries" and I'm good to go. Now with the updated 7.1, it seems to be a different story rather than "just drop it in".
    – Tom F
    Commented Oct 26, 2015 at 18:07
  • UPDATE: If I do add the "googlemobileads" in a framework in a folder where my project is, I can run the code but the app crashes at the splash screen. When it crashes, Xcode redirects to the debug navigator with a message at the bottom saying: self =(MyProject.ViewController) and all this weird stuff. Very confusing...
    – Tom F
    Commented Oct 26, 2015 at 21:01

1 Answer 1

0

Sounds like you have an exception breakpoint turned on (you can disable that), and your auto-layout constraints are invalid (probably unrelated to the Xcode 7.1 migration).

Not the answer you're looking for? Browse other questions tagged or ask your own question.