19787

Can't make Xcode 4 run a barely empty project using SDK 4.2 (runs fine in 4.3)

Question:

I created a blank NavBar project and only touched a couple lines or so on one of the view controllers. I tested it fine in the 4.3 iPad and iPhone emulator but can't make it work for 4.2 at all. I get an error saying:

<blockquote>

The selected run destination is not valid for this action.

</blockquote>

This is what I have on my project settings:

<img alt="Screenshot of my project settings" class="b-lazy" data-src="https://i.stack.imgur.com/VXTyD.png" data-original="https://i.stack.imgur.com/VXTyD.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

Usually in XCode 3 that was all I needed to change but I guess I'm missing some setting in XCode 4.

What could this be?

Answer1:

@pokstad, you are right. I was looking at the wrong place indeed!

Choosing the target and changing the SDk there did the trick.

Thanks!

Answer2:

I really had troubles with this and none of the hints helped. Finally I got an error message that pointed to an old file in the build folder, in the end a simple clean did resolve my issues (shift+cmd+K). It compiled fine. So remember to clean your current build after you changed the build settings in Xcode4. This may be obvious, but at that moment it wasn't obvious to me.

Recommend

  • Ansible sudo hangs after 5 tasks
  • Objective-C : getting error on console while trying to display app on ipad device?
  • Google Maps api v3 get start and end coordinates of a street
  • netsh acl setting (need alternative method - registry settings?)
  • how to set variables in a php include file?
  • Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)
  • Image map in Flex
  • Who propagate bugfixes across branches (corporate development)?
  • Implementing “partial void” in VB
  • Sending HTML Form Data to Spring REST Web Service
  • Sonar maven jacoco code coverage for Multimodule project
  • MySQL Order by column = x, column asc?
  • Unable to decode certificate at client new X509Certificate2()
  • Should I or shouldn't I use the CachingConnectionFactory with hornetq 2.4.1
  • Swift: Switch statement fallthrough behavior
  • How to test if a URL from an Eclipse bundle is a directory?
  • Recording logins for password protected directories
  • How do i call multiple functions using if statements that have multiple parameters in C++
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • what is the difference between the asp.net mvc application and asp.net web application
  • Build own AppleScript numerical error handling
  • Release, debug version and Authorization Google?
  • R: gsub and capture
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Is there a mandatory requirement to switch app.yaml?
  • Comma separated Values
  • Hits per day in Google Big Query
  • Why joiner is not used after Sequence generator or Update statergy
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • File not found error Google Drive API
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • How to push additional view controllers onto NavigationController but keep the TabBar?
  • How to load view controller without button in storyboard?