Search results for

file uri scheme

78,587 results found

Post

Replies

Boosts

Views

Activity

Reply to How to create Campaign Links for new app?
So am I - I went into iTC for one of my apps, read the blurbs on Campaign links, and then walked thru the process to get the sample link shown above.This is on the assumption that a followup will be done later in iTC when that app enables that process there.Otherwise, I agree it seems to be a catch-22 - might want to file a bug against the process to help enlighten the backend.◅▻
Jun ’15
Reply to Any way to fix Control-O?
Thanks! I've filed a bug report.You're right that it's auto-indentation that's messing things up - I hadn't noticed that. If the following line doesn't require indentation, Control-O behaves exactly the same as in emacs.In pseudo-code Control-O was probably implemented something like: newline(); moveCursorBackOneCharacter();That worked as expected until code was added to newline() to auto-indent.
Jun ’15
Reply to Xcode quit unexpectedly. Xcode 6.3.2
Having the same issue with the same backtrace. Xcode 6.3.2/Yosemite 10.10.3I was able to upload the app using Application Loader. The upload was successfull, but I recieved the warning The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message.It looks like the Xcode crash occurs when trying to present a warning on a thread other than the main thread. Perhaps it is this warning?-Steve
Jun ’15
Reply to Submit App to AppsTore - Xcode Crash
This is the crash report :Process: Xcode [570]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.3.2 (7718)Build Info: IDEFrameworks-7718000000000000~2App Item ID: 497799835App External ID: 812404257Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [570]User ID: 501Date/Time: 2015-06-17 13:55:50.417 -0500OS Version: Mac OS X 10.10.3 (14D136)Report Version: 11Anonymous UUID: 62FC1C66-70DA-161C-D548-575494D67226Time Awake Since Boot: 710 secondsCrashed Thread: 17 Dispatch queue: NSOperationQueue 0x7f808b240380 :: NSOperation 0x7f808b13c930 (QOS: USER_INITIATED)Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 6D2105ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Issues/IDEIssueManager.m:457Details: This method must only be called on the main threadObject: <IDEIssueManager>Method: +_issueProviderInfoThread: <NSThread: 0x7
Jun ’15
Load images from Assets.car in a resource nsbundle?
I'm trying to create a plain resource NSBundle that I can load in my iOS app that has some image assets, maybe some tweaked storyboard/nib files, and other data. It doesn't have anything executable in it, (therefore it can't be loaded), but I want to extract resources from it.However, when I use actool to create an Assets.car into the bundle, I cannot extract images from it, even using the new UIImage method imageNamed:inBundle:compatibleWithTraitCollection:// This should work, but just returns nil. [UIImage imageNamed:@bar inBundle:bundle compatibleWithTraitCollection:nil];My bundle file content structure is basically:Foo.bundle/ Assets.carInfo.plistResources/ green.storyboardcHowever, if I use raw images instead of compiling them into a .car (e.g. copy directly, or set actool's --minimum-deployment-target to 6.0), then the file structure looks like:Foo.bundle/ bar.pngbar@2x.pngbar@3x.pngInfo.plistResources/ green.storyboardcAnd it works, but I lose all slicing info, and other cont
Topic: UI Frameworks SubTopic: UIKit Tags:
5
0
7.3k
Jun ’15
libcompression ?
Was going to work with compression_encode_buffer , but when I link I get Undefined symbols for architecture armv7: _compression_decode_buffer, referenced from:Sure, right let's add the library but all I can find is a filelibcompression.tbdbut that appears to be a text file that just contains the following text.So anyone know how to get around the link error?---archs: [ armv7, armv7s, armv7k, arm64 ]platform: iosinstall-name: /usr/lib/libcompression.dylibexports: - archs: [ armv7, armv7s, armv7k, arm64 ] symbols: [ _compression_decode_buffer, _compression_decode_scratch_buffer_size, _compression_encode_buffer, _compression_encode_scratch_buffer_size, _compression_stream_build_shared_dict, _compression_stream_destroy, _compression_stream_get_state_size, _compression_stream_identify_algorithm, _compression_stream_init, _compression_stream_init_with_options, _compression_stream_is_state_valid, _compression_stream_op_data_size, _compression_stream_process ]...
2
0
2.8k
Jun ’15
Thinking about a cleaner `if` syntax
With Swift 1.2 the `if` syntax became a lot more powerful but also inconsistent.Simply said the `if` syntax looks like the following (ignoring Swift 2's new pattern matching):if <preconditions>, <assignment conditions> where <postconditions> {It's evaluated from left to right.For example:if a && b && ..., let c = d, e = f, ... where g && h && ... {Here a more natural hypothetical example:if ready && shouldRead, let file = file, reader = file.reader where reader.available && reader.hasData {It's weird that first a comma and later the `where` keyword is used to separate conditions.In both cases they don't mean anything else than and.I'd suggest a simpler and more consistent syntax like this:if ready && shouldRead && let file = file, reader = file.reader && reader.available && reader.hasData {As before it's evaluated from left to right and the intent is much clearer.Assignment con
2
0
494
Jun ’15
NSData memory mapped WWDC session 212
I've found the session Optimizing Your App for Multitasking on iPad in iOS 9 really interesting.Thanks to a Carmack quote in 2011 I started to know about memory mapping in iOS, but I've never found a concrete example about how to achieve or where to apply that.The session comes whitout a sample code or playground file and is a pitty because I'd like to recreate a sort of a scenario to profile.Back into 2013 out of curiosity I wrote this answer on stack overflow about how to memory map big images, I never had a clear reply.Since the session talks about memory map sets of images whithout impact the RAM I'm not getting if I didn't understand some base concept or what I was doing wrong.I've test memory map with these simple lines of codes, but profililing with allocation I always saw the image allocated in RAM as dirty and crashes on real device due to the huge size of the image.NSError * __autoreleasing error = nil; NSData * mappedData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResou
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
1.3k
Jun ’15
hdiutil error -5341 creating .dmg
I am trying to construct a .dmg containing my application bundle, an examples directory, and a readme file. I use a shell script to construct the directory G4beamline-3.01 containing them, and then do$ hdiutil create -srcdir G4beamline-3.01 G4beamline-3.01.dmg...................................................................hdiutil: create failed - error -5341What does that error mean? How can I fix it?Here's the crazy part -- if I move the app bundle out of that directory, I can create two .dmg-s:$ mv G4beamline-3.01/G4beamline.app .$ hdiutil create -srcdir G4beamline-3.01 one.dmg....................................created: ...path/one.dmg$ hdiutil create -srcdir G4beamline.app two.dmg...................................................................created: ...path/two.dmgSo the puzzle is: why is it that it can create the .dmg when the two pieces are separate, but not when they are together (as required)?Note that all .dmg-s open normally, and if there is an app inside it runs correctly. There is
2
0
1.6k
Jun ’15
-[NSHTTPCookieStorageInternal cookies]: unrecognized selector sent to instance 0x...
Getting a NSHTTPCookieManagerCookiesChangedNotification notification and I try to extract an array of cookies from storage as such:NSHTTPCookieStorage *storage = notification.object; NSArray *cookies = [storage cookies];Line # 2 throws the -[NSHTTPCookieStorageInternal cookies]: unrecognized selector sent to instance 0x... error. Header file doesn't mention that the cookies method is deprecated in any way.
1
0
394
Jun ’15
How can I write/read log files of type JSON or CSV with Swift?
hey guys,I am a newbie in xCode and Swift and I am currently struggling with implementing a solution for log captured location data to a JSON-File or CSV-File.I have a collection of objects and I want to save this data to a log file.The following code shows the structure of an object which I want to log.class LocationLogData { var timeStamp: NSDate var location: CLLocation var speed: CLLocationSpeed var verticalAcc: CLLocationAccuracy var horizontalAcc: CLLocationAccuracy var direction: CLLocationDirection var distanceFromPreviousLocation : CLLocationDistance var locationName: String? init(timeStamp:NSDate, location:CLLocation, speed:CLLocationSpeed, verticalAcc:CLLocationAccuracy, horizontalAcc:CLLocationAccuracy, direction:CLLocationDirection, distanceFromPreviousLocation:CLLocationDistance) { self.timeStamp = timeStamp self.location = location self.speed = speed self.verticalAcc = verticalAcc self.horizontalAcc = horizontalAcc self.direction = direction self.distanceFromPreviousLocation = distance
0
0
995
Jun ’15
How can I update the location in a specific time intervall?
Hey guys,I am a newbie in xCode and Swift.What is the goal?I want to implement an iOS-App, which tracks my location every N seconds or minutes and log it to a file. The accuracy level should be the highest one. The app should be able to track my location when it is in foreground and in background.Why do I want to track my location every N seconds or minutes?Because I want to take care a little of the battery consumption.What I have already implemented?i have already made the Capabilities settings for the project -> Activate Background Modes and checked Location updates and Background fetch.I extended the info.plist with the following key/valeus -> NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescriptionI have also implemented the CLLocationManagerDelegate like shown in the following linesclass LocationTableViewController : UITableViewController, CLLocationManagerDelegate { @IBOutlet weak var switchItem: UISwitch! / var locationPoints = [MKPointAnnotation]() var listOfLocationLog
5
0
7.9k
Jun ’15
command line compilation with Swift 2.0 targeting OS=8.3
I currently compile swift 2.0 with this:PLATFORM = 'platform=iOS Simulator,name=iPhone 6,OS=9.0'xcodebuild test -project $(PROJECT).xcodeproj -scheme $(PROJECT) -destination $(PLATFORM)but my customer is asking if I can complete back to OS=8.3. I set the Deployment target to 8.3 but when change my makefile to OS=8.3 it hangs for a while, then says it's Unable to find a destination matching the provided destion specifier:....Is it just looking for a compatible simulator or is this a larger problem?
0
0
227
Jun ’15