Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updates the Makefile in MonoCatalogSample to use iOS 5.0 #13

Merged
merged 2 commits into from

2 participants

@bratsche
Collaborator

One line was specifying iOS 4.3, but I think other calls to mtouch appeared to be defaulting to 3.0 as far as I was reading. This PR changes all the $(MTOUCH) calls to explicitly specify --sdk

This allowed me to compile MonoCatalogSample on my system, where otherwise I was unable to.

@migueldeicaza migueldeicaza merged commit 5117f27 into xamarin:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2012
  1. @bratsche
  2. @bratsche
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 7 deletions.
  1. +8 −6 Make.common
  2. +2 −1  MonoCatalogSample/toolbar.cs
View
14 Make.common
@@ -1,3 +1,5 @@
+IOS_SDK_VERSION = 5.0
+
MONOTOUCH_MONO_PATH = /Developer/MonoTouch/usr/lib/mono/2.1
MONOTOUCH_VERSION = 1.0
MONOTOUCH_PREFIX = /Developer/MonoTouch
@@ -15,19 +17,19 @@ cycle:
dev: $(EXTRA_DEPS) device/$(APPDIR)
-mkdir bin
- $(MTOUCH) -bundleid com.novell.monotouch.sample.$(EXE) -dev device/$(APPDIR) -c "iPhone Developer: $(DEVNAME)" $(EXE)
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) -bundleid com.novell.monotouch.sample.$(EXE) -dev device/$(APPDIR) -c "iPhone Developer: $(DEVNAME)" $(EXE)
for f in $(DATA); do cp $$f device/$(APPDIR); done
- $(MTOUCH) -installdev device/$(APPDIR)
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) -installdev device/$(APPDIR)
launch: simulator/$(APP)
-rm -f output error
- $(MTOUCH) --sdk=4.3 --launchsim=simulator/$(APPDIR) --stdout=output --stderr=error
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) --launchsim=simulator/$(APPDIR) --stdout=output --stderr=error
debug: simulator/$(APP)
- $(MTOUCH) --debugsim=simulator/$(APPDIR) --stdout=output --stderr=error
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) --debugsim=simulator/$(APPDIR) --stdout=output --stderr=error
simulator/$(APP): simulator/$(APPDIR) $(EXE) $(MTOUCH)
- $(MTOUCH) -bundleid com.novell.monotouch.sample.$(EXE) $(MFLAGS) -sim simulator/$(APPDIR) $(EXE)
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) -bundleid com.novell.monotouch.sample.$(EXE) $(MFLAGS) -sim simulator/$(APPDIR) $(EXE)
for f in $(DATA); do cp $$f simulator/$(APPDIR); done
simulator/$(APPDIR):
@@ -37,7 +39,7 @@ device/$(APPDIR):
mkdir -p device/$(APPDIR)
main.m: $(EXE) $(MTOUCH)
- $(MTOUCH) -v $(EXE)
+ $(MTOUCH) --sdk=$(IOS_SDK_VERSION) -v $(EXE)
$(EXE): $(SOURCES)
/Developer/MonoTouch/usr/bin/smcs $(SOURCES) -debug -r:monotouch.dll $(REFS) -out:$(EXE)
View
3  MonoCatalogSample/toolbar.cs
@@ -119,7 +119,8 @@ public override void ViewDidLoad ()
break;
case 2:
- toolbar.BarStyle = UIBarStyle.BlackTranslucent;
+ toolbar.BarStyle = UIBarStyle.Black;
+ toolbar.Translucent = true;
break;
}
Something went wrong with that request. Please try again.