Documentation download from within XCode - ios

I am watching Objective-C tutorials, and they are all old for obvious reasons.
During their times, it was possible to download documentation in XCode for offline reference--in the way discussed in this question:
XCode Documentation - Offline Reading
It used to be done via Preferences -> Downloads tab -> Documentation. I.e., you used to have both Documentation and Simulators in the Downloads tab.
In the recent version of XCode there is no Downloads tab. There is only Components tab, and it only has Simulators, no Documentation.
I tried searching for the answer, but surprisingly no luck for such seemingly simple question.
How do I download the full set of available docs for offline use? Thanks.

The documentation is available out of the box nowadays and can be accessed from Window - Developer Documentation (⇧⌘0) Xcode menu:
I don't know, however, if you can opt-out and not have it downloaded.

Related

How do you Access the iPhone Settings App?

How do you access the iPhone Settings App? How do you set up your own options and how do you read the option setting status from swiftui. Is there some kind of list of standard options available?
I've checked several books I have and Apple documentation online without finding anything on the subject. Maybe at least point me to some documentation.
Managing settings is not UI related, so it really has nothing to do with SwiftUI.
That said, read up on UserDefaults and Settings Bundles.

iOS build not showing activity tab since April 2020

I have uploaded to my application build on AppStore. But I have found strange issues I can not showing build on activity tab. This is happen starting from April and I got mail
"ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview)."
Then I checked my code I have not use UIWebView in my whole code. Please suggest me what to do.
I got the same issue before.
I have uploaded my app n got the mail related to UIWebview, so I have coverted the UIWebview to WKWebView and again I uploaded the same. But that time same thing happend again build appear for few minute and just disappears from activity tab. I failed to tackle the problem.
Then I mailed to Apple Developer Support and they replied like Any of the third party library internally using some privacy data you should ask permission for the same.
Then I checked Info.plist, I have given each permission in list still how it comes that we don't understand. Finally then after whole search the one third party library internally using motion related data without permission so this happened. Then I have added that in plist and then again uploaded and its approved.
So please first you check for the webview usage and change it to WKWebView if so and then you can check your info.plist and also check whether your third party library using any privacy sensitive data without permission internally or not. May it help you at some point.
SOLVED
I solved my self.
I just write pod 'GoogleSignIn', '~>4.4.0' instead of pod 'GoogleSignIn' and pod update its work. Now I am seen build on Activity tab.

Launching an 'App for Office' from the iOS Office app

I have developed an 'App for Office' (for Word) that runs as a task-pane app. When I open a Word Document, I can add my app and let it run on the task-pane.
How can I run my app when I am on my iPhone/iPad and using the iOS version of Microsoft Word? I wasn't able to find where I can add my app into the document.
I am aware this is more of a support question for Microsoft, but Stackoverflow seems to be the best place for now (I couldn't find any relevant StackExchange site).
Store add-ins are definitely supported on IOS in general, but not all add-ins. The developer has to tick a box and provide evidence that the add-in has been tested on IOS for it to be available to users, so the IOS versions of Office will have less add-ins available.
That said, you should be able to see the ones that are available via the Insert menu. Look for Store or My Add-ins under the Insert menu.

Will Appstore reviewers allow us to use dynamic library in iOS8?

I read many articles about dynamic library usage including this page "Can you build dynamic library...".
As apple document said, "Frameworks for iOS. iOS developers can now create dynamic frameworks. Frameworks are a collection of code and resources to encapsulate functionality that is valuable across multiple projects. Frameworks work perfectly with extensions, sharing logic that can be used by both the main application and the bundled extensions.", see full page from here.
Taking the security issue as consideration, I got the reject reason of dynamic library before iOS8, see details from "DarkDust's answer". But, how does it "just work" in iOS8? #appstore_reviewers?
Anyway, currently I'm writing a sample demo app and try to upload it to Appstore for review, the main feature is downloading a framework from internet to client and dlopen it. Hope that really "just works"!
Besides, the deployment target is iOS7.0, not sure it could works well in it.
I didn't get a so clear understand on differences between "dynamic library" and "framework", I think they are the same and in this thread I mean "Cocoa-touch framework" which could create in Xcode 6.
Some background: I'm trying to build an iOS app which does't contain extension feature, my cocoa-touch framework is for easy expand without uploading a new version as it comes from internet....
UPDATE
I published a demo project GMDemo here, will try to upload to Appstore.
UPDATE2
I failed to dlopen my dynamic framework with invalid code signing error after many tries in iOS device. Sorry, no good news here. (Almost forgot to update this question, sorry! BTW)
App Store Review Guidelines explicitly prohibit that in 2.4.5 Apps that download code in any way or form will be rejected https://developer.apple.com/app-store/review/guidelines/
UPDATE3 just use the same code signing!!!
I have test it in ad-hoc environment!
when my dynamic library use the code signing with the same code signing,It works,
otherwise,crush!!

Writing to a file in my iOS app

I have an app that downloads files that need to be edited and submitted back to the server through the app. These files could be anything, but are most likely to be .docs. I want to be able to open and edit these files in another app on the device, such as a .doc editor.
I've been able to get this functionality to work in similar Android and Chrome apps, but I'm very new to iOS so I'm not sure what my options are.
Is there a way to give permission for another app to edit a file that is in my app's sandbox? If not, is there a way to get the file back for submittal (like finding it through a file explorer launched through my app - similar to an 'Open..." file explorer dialog used in Windows/Mac OS/Chrome)? Am I going to have to create a way for the editor app to share the edited file back to my app?
Thanks in advance for your help!
To manage the file and the paths take a look at the documentation for NSFileManager:
https://developer.apple.com/LIBRARY/mac/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html
I usually write using NSFileHandle for reading and writing:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/Reference/Reference.html
Hope this helps.
iOS8 will provide methods to allow apps to co-operate with "extensions".
See "Creating Extensions for iOS and OS X, Part 1 & 2` in the WWDC14 videos.
Also see the Apple "App Extension Programming Guide".
I ended up sending the file to a 3rd party app for editing and then sending the file back from the 3rd app to my app.

Resources