Search results for

file uri scheme

78,571 results found

Post

Replies

Boosts

Views

Activity

Reply to Error handling not working as expected
What you may not grasp is that Cocoa's traditional error handling rules are still in effect:If a method fails and there's only really one failure case for it (trying to convert a non-numeric string to a number, etc.), the method returns nil or false.If an operation fails because of some complex issue with the current state of the computer (no such file, Wi-Fi turned off, etc.), the method emits an NSError. In Swift, NSErrors are handled with the do/try/catch mechanism.If an operation fails because the programmer wrote code that did something invalid (out-of-range array index, etc.), the method fails an assertion or raises an exception, which you should generally allow to crash your app. In Swift, it's not possible to catch exceptions.Creating a fetch request with an inaccurate entity name falls into that third category: failures that can only be the result of programmer error. Such problems are still handled by failing an assertion and crashing your app.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to App usage details?
OS X....that detail I missed, sorry. 'app' means iOS - application means OS X, to me 🙂Maybe those applications will be included after the beta is closed. File a bug to let them know you'd like to see it, perhaps.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
swift 2 - Receiver "Some_Swift_Class" for class message is a forward declaration
I'm using xcode 7 and swift to write swift code and objective-c together. I I encounted Receiver Swift_Class for class message is a forward declarationSwiftCode.swift source file----------------------------------------class SwiftCode: NSObject { func someFunction() { }}Objective-CCode.m source file----------------------------------------.. SwiftCode *someSwiftCode = [ [SwiftCode alloc] init] <- failed hereDoes someone can help me, thanks in advance
4
0
4.6k
Jun ’15
Test code coverage generation on iOS 8.2 device?
I'm trying to grab and view code coverage withXcode 7 beta and iOS 9 SDKiOS 8.2 deviceSceme set to gather coverage data for 'Test'Set Yes to Generate Debug Symbols, Generate Test Coverage Files, and Use Optimization Profile in Build Settings for the Test Target of my sample app.If I run Unit Tests, not UI Tests that supported only from iOS 9, and get the following error from Xcode console:dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find: /private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection: mmap() error 1 at address=0x1000A8000, size=0x00008000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Data/Application/7A78583D-E542-48B4-8DD6-F9A061FCE1E6/tmp/IDEBundleInjection.framework/IDEBundleInjection*** Test operation was canceled.
4
0
1.5k
Jun ’15
Xcode Server Sigining Product
I am not being able to sign my Product. It stucks in step 6 when running my continuous integration. Actually there is also another weird thing happenning.In OS X Server Xcode preferences pane I added my developer account to enable Xcode Server sign my .ipa file. But in OS X Server Logs I saw something like thisJun 15 10:26:05 blabla.com.tr xcscontrol[961]: DeveloperPortal: Completed request 8331BF8B-EA0B-4C99-987F-8F3E9ECCED62 (failure): { DTDK_Platform = ios; creationTimestamp = 2015-06-15T07:23:44Z; httpCode = 200; protocolVersion = QH65B2; requestId = 8331BF8B-EA0B-4C99-987F-8F3E9ECCED62; requestUrl = https://developerservices1.apple.com/services/QH65B2/ios/downloadTeamProvisioningProfile.action; responseId = 5544ef83-0af3-441f-acf7-ea931331f3a5; resultCode = 3170; resultString = No team member found for teamId 'TEAMID_XXXX' and teamClientUid 'CLIENTUID_XXX'; teamId = TEAMID_XXXX; userLocale = en_US; userString = Unable to find a team with the given Team ID 'XXX.XXX.XXX' to which you belong. Pleas
9
0
3.2k
Jun ’15
file manager
Good Morning:We are development an Epub Reader app for educations in IPAD.We use a html and js library inside de app bundle.The app works well in local files without internet connection if the epub file is inside the www directory.The problems is that the app need download epub and save online to document directory and we don't known how to access to this file by code.Index.html need read the url to epub and only read relative url.How we can access to this files after is downloaded and pass the url to the html file without security problems?Thanks
0
0
112
Jun ’15
Sending IOS Push Notifications from Server
Dear Support Team,Kindly note that I am building an IOS application that support push notification, my app is now in the store under name إتحاد بلديات جبل عامل, and it's ready to receive notifications..My issue is when I'm sending push notification using my macbook it's successfully received, but when I am putting the same files on the server and trying to send notification using server it failsMy hosting support team say that APNS ports (2195 & 2196) are open.Kindly note that the response we get when trying to send push notification from server is:Failed to connect: 110 Connection timed outI can send you my files to check if the problem is from my side.Please provide me with a solution to solve my issue.Thanks in advance,Taleb Atoui
1
0
661
Jun ’15
Reply to Apple TV play/pause button does not fire event with MPRemoteCommandCenter
Agreed, we had to work around this in our code as well. This is also a problem in the new iOS 9 API AVPictureInPictureController. I encourage you to file a bug report with Apple.Here are my radars:Apple TV remote should trigger MPRemoteCommandCenter callbacks (rdar://21375465)AVPictureInPictureController controls should respect MPRemoteCommandCenter. (rdar://21375458)
Topic: App & System Services SubTopic: General Tags:
Jun ’15
iCloud Drive - search
Is there supposed to some some sort of indexing of files that are stored in iCloud drive?For files that I manually copy into a folder (i.e. not via an app) there seems no way to search even by filename or tags, let alone text within the document.Does anyone know if this is a short term limitation or is there no plans to provide this functionality?I was looking at moving all my personal docs off of Google Drive but the lack of a search function has me questioning this now.Cheers
0
0
140
Jun ’15
c function is used in .mm file
I use c function in .mm file. and project link error. the error information is c function symbel can no be found in xxx.o.the code is this, as follow:in test.h and test.m file define c function.for example, void cfunction(); in test.hvoid cfunction() in test.m{ printf(hello worldn);}I use cfunction in oc class in octest.h octest.mfor excample,@implement octest- (void)ocprintfunction{ cfunction();}@endif octest.m file, build and link is ok and project run nomarlly.if i modify octest.m to octest.mm, link is error. and error infomation is cfunction symbol can no be found in octest.oif somebody know how to fix this issue , please tell me。I find a method to fix this issue. c function must define in .cpp
0
0
195
Jun ’15
Reply to Can't submit app - "Invalid Signature - Code object is not signed at all"
Thank you for your reply.The problem really appeared to be in the 3rd party SDK I used in my project. I was using the HockeyApp SDK, and included all the files coming with the SDK into my project. There were some redundant files after removing which the Apple validation process stopped complaining about Invalid Binary.But the strange thing is that the app submitted on May 30 with previous configurations (with redundant files) didn't produce the error, but the app with same configurations submitted after Jun 9 produces the Invalid Binary error. So there is definitely something changed in the Apple validation procedure during that period.
Jun ’15
Reply to IdentifierForVendor changed unexpectedly + forum is broken
Same here and I've also posted in the old forums, where gc from Apple repplied:Please file bug reports on this at <https://developer.apple.com/bug-reporting>>. We're aware of this issue and are investigating. There's no known workaround at this time.As stated, I've posted a bugreport, which is now marked as duplicated. If you didn't do it already, please also post a bugreport to increase the visibility of the bug.
Jun ’15