Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 112

GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
10/05/12 03:32 PM (13 years ago)

Scringo - Step 3?

Hey everyone! So I'm planning on releasing my first update for TGfU Games for Elementary PE and this involves integrating Scringo! Now, I have a quick question regarding Scringo's iOS SDK 1.0.4 Step 3 says: Activate Scringo in your app // In the import section #import <Scringo/ScringoAgent.h> // Inside this method, add a call to ScringAgent -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Your application code [ScringoAgent startSession:@"YOUR_SCRINGO_APP_ID" locationManager:nil]; return YES; } Where exactly do I place these lines of codes? And I understand that "Your_Scringo_app_id" is my personal id, which I'm able to find on the Scringo webpage. Something tells me I need to add this anywhere in the appdelegate.m file... Let me know!!! Thank you, Nicholas
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
10/05/12 06:23 PM (13 years ago)
I've never used Scringo, but my guess would be to go to your appDelegate.m - the very first method you'll see is the didFinishLaunchingWithOptions method - the last line of this method is "Return TRUE" here is a screenshot with "Return TRUE" highlighted in grey - http://www.pixobit.com/wp-content/uploads/2012/10/Screen-shot-at-2012-10-05-5.16.04-PM.png I would try inserting the Scringo code right before where it says "Return TRUE"
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
10/05/12 08:27 PM (13 years ago)
Hey Absentia, Thanks for the reply. I actually had to insert the Scringo code after the "Return True" as I would get errors and warnings after I put the final } symbol. I loaded up the simulator and Scringo did not work its magic. That being said, I've run into an "Apple Mach-O Linker (id) Warning" and I believe that's likely the culprit as to why Scringo isn't working. Here's the warning: Ld /Users/lauramonaco/Library/Developer/Xcode/DerivedData/tgfugamespe-eqmfrsczqlsxrbctlkpksnpyiauu/Build/Products/Debug-iphonesimulator/tgfugamespe.app/tgfugamespe normal i386 cd "/Users/lauramonaco/Desktop/tgfugamespe_v20_iOS - final" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/lauramonaco/Library/Developer/Xcode/DerivedData/tgfugamespe-eqmfrsczqlsxrbctlkpksnpyiauu/Build/Products/Debug-iphonesimulator -F/Users/lauramonaco/Library/Developer/Xcode/DerivedData/tgfugamespe-eqmfrsczqlsxrbctlkpksnpyiauu/Build/Products/Debug-iphonesimulator "-F/Users/lauramonaco/Desktop/tgfugamespe_v20_iOS - final/../scringo-ios-1.0.4" "-F/Users/lauramonaco/Desktop/tgfugamespe_v20_iOS - final" "-F/Users/lauramonaco/Desktop/tgfugamespe_v20_iOS - final/scringo-ios-1.0.4" -filelist /Users/lauramonaco/Library/Developer/Xcode/DerivedData/tgfugamespe-eqmfrsczqlsxrbctlkpksnpyiauu/Build/Intermediates/tgfugamespe.build/Debug-iphonesimulator/tgfugamespe.build/Objects-normal/i386/tgfugamespe.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -weak_framework Accounts -weak_framework Twitter -lxml2.2 -framework CoreAudio -framework CoreLocation -weak_framework Foundation -framework SystemConfiguration -weak_framework UIKit -framework MobileCoreServices -framework AVFoundation -weak_framework MessageUI -framework MapKit -weak_framework MediaPlayer -framework CoreGraphics -framework QuartzCore -weak_framework iAd -framework Scringo -o /Users/lauramonaco/Library/Developer/Xcode/DerivedData/tgfugamespe-eqmfrsczqlsxrbctlkpksnpyiauu/Build/Products/Debug-iphonesimulator/tgfugamespe.app/tgfugamespe ld: warning: directory not found for option '-F/Users/lauramonaco/Desktop/tgfugamespe_v20_iOS - final/../scringo-ios-1.0.4' I really have no idea what to do next... Any help would be greatly greatly appreciated to get me over the hump! Thanks! Nicholas
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
10/06/12 12:22 AM (13 years ago)
All is well in the Scringo word! Thanks for the help! Nicholas
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
10/27/12 12:51 AM (13 years ago)
Great work on that app and video GraciousWolf!
 
GraciousWolf_PE
Aspiring developer
Profile
Posts: 372
Reg: Feb 15, 2012
Montreal
10,720
like
10/27/12 01:12 AM (13 years ago)
Thanks, Ian, hopefully it's the 1st of many! Nicholas
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.