How to export in USDZ format in Reality Composer? - augmented-reality

I want to export model in usdz format from reality composer but I am not getting the option.
As per apple user would get option to enable USDZ export in preference of reality composer but I am not getting that option.
Image From apple website

In Reality Composer 1.5 (which is a part of Xcode 12) go to Preferences menu and enable USDZ Export. For more detailed info read this post.

Related

Convert a video into an IOS Live Photo format without an Apple device

I'm currently making live/animated wallpapers for Android phones, which is pretty easy with GIF/Mp4 files. But I would also like to make the live wallpapers compatible natively with ios/iPhones. I've seen many tutorials on how to convert a video to a Live photo but they all involve some kind of app you need to install on your IPhone. Issue is, I don't own an iPhone or any iOS device to do that and apparently iOS emulators are not a thing, so my question is :
Is it possible to convert a (mp4) video to an iOs Live photo through a 3rd party ? If so, how would you do it ?
I'm pretty inexperienced with the iOS environnement so thank you for your help !
Well, a live photo is a container that holds both a .jpeg and a H.264-encoded .mov file. More details here.
Do you have an Apple computer to do so, or do you want to create it independently from any apple hardware?
For the first case, there are a bunch of (demo) applications on github you could take a look into.
For the second case, I'm not sure if anything exists.

iPad Swift Playgrounds shares blank .playgrounds file

I have started a beginning Swift programming class, which is going well so far, but I do not have access to a Mac for Xcode. I do have Swift Playgrounds for iPad, which allows me to complete the assignments and test that they work, but when I try to share the .playground file, it exports a blank file. Is there a solution for this problem?
Failing that, is there a way to save a text file containing Swift code as a .playground file on a PC? Buying a Mac (even a used one) is not an option at the moment, and using the on-campus computer lab takes over 3 hours round trip, so even a very convoluted workaround would be preferable.
You can share the playground from the iOS app to Working Copy, an iOS Git client.
Save in Working Copy > Save as .playground dir
It's free to try and you can export the repository as a zip file. So you can save it to Dropbox, or e-mail it to yourself. If you get the paid version, or in-app purchase, you can push it up to Github, or Bitbucket, which would make it easier to share any changes back. Working Copy can be added to the list of locations you can import Playgrounds from so that would probably be a worthwhile investment.
The enterprise version is the same price as the in-app purchase on the free app and includes the features the in-app unlocks.
Working Copy - Powerful Git client by Anders Borum
https://appsto.re/gb/xONC1.i
Working Copy Enterprise by Anders Borum
https://appsto.re/gb/aEqH5.i
In testing the exporting of a zip file I found the Dropbox support a little glitchy. I had more luck doing 'Import to Evernote' which created a *-playground.zip in Evernote. I could then save that to Dropbox. I've not had a chance to confirm the e-mailed version but it looks okay.
Pushing the .playground up to Github works just fine.

How to set fake GPS location on IOS real device

Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use 'My Fake Location'. Unfortunately, I didn't find the same app for IOS 7.
Any ideas to solve my problem?
When running in debug mode you can use the little arrow button in the debug area (Shift+Cmd+Y) in Xcode to specify a location. There are some presets or you can also add a GPX file.
You can generate GPX files here manually: http://www.bikehike.co.uk/mapview.php
(from answer: https://stackoverflow.com/a/17478860/881197)
Create a .GPX file with xcode, then specify your coordinates and when your device connected, hit the little arrow button and select your .GPX file.
You can create multiple files and add lots of coordinates to single .GPX file in order to make some kind of route.
Of course ios7 prohibits creating fake locations on real device.
For testing purpose there are two approches:
1) while device is connected to xcode, use the simulator and let it play a gpx track.
2) for real world testing, not connected to simu, one possibility is that your app, has a special modus built in, where you set it to "playback" mode. In that mode the app has to create the locations itself, using a timer of 1s, and creating a new CLLocation object.
3) A third possibility is described here:
https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html
Working with GPX files with Xcode compatibility
I followed the link given by AlexWien and it was extremely useful: https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html
But, I spent quite some time searching for how to generate .gpx files with waypoints (wpt tags), as Xcode only accepts wpt tags.
The following tool converts a Google Maps link (also works with Google Maps Directions) to a .gpx file.
https://mapstogpx.com/mobiledev.php
Simulating a trip duration is supported, custom durations can be specified. Just select Xcode and it gets the route as waypoints.
xCode is picky about the GPX file it accepts.
But, in xCode you can create a GPX file with the format it will accept:
And then just change the content of the file to the location you need.
you can do it on real device by run device in Debug mode
Click Debug->Simulate Location -> add .gpx file for your location during run time
I had a similar issue, but with no source code to run on Xcode.
So if you want to test an application on a real device with a fake location you should use a VPN application.
There are plenty in the App Store to choose from - free ones without the option to choose a specific country/city and free ones which assign you a random location or asks you to choose from a limited set of default options.
it seems with XCode 9.2 the way to import .gpx has changed, I tried the ways described here and did not do. The only way worked for me was to drag and drop the file .gpx to the project navigator window on the left. Then I can choose the country in the simulator item.
Hope this helps to someone.
There are one solution for fake GPS in ios simulator and real device. we can use GPX file for fake GPS and simulation.
I followed the step by step guidelines of GPX file use in Xcode with simulation.
Here is full step by step guidelines of GPX file use. And also you can download the GPX file Demo from github.

PDF view in blackberry?

I am working on an Blackberry application in which I have to show some PDF files in my application.
I know we can show the PDF file as a GOOGLE document, I have already done that. But this time my task is to show PDF files inside application.
Do we have any option to show PDF files in our own application by using some SDK's ?
Please suggest me.
I dont think any blackberry sdk support this facility.
There is only one option to view pdf files offline is to download and view using a third party pdf viewer.
Even blackberry dont have given a built in pdf reader to user,when I was looking for the same issue I found that only one company SLG Mobile has made this app(beamreader) and blackberry gave them very special award(dont remember award name now),
so this third party app is free for one month and after that you have to pay nearly 500 Rs as licence fee.
Now for BB10 Adob has created a reader and it comes with device itself.

How can you import text files into an iPad application?

For a school project, I am writing an iOS iPad application in which the user is capable of inputting sentences into core data that are used elsewhere in the system; however, my professor has now asked for another feature in which the user is capable of somehow entering sentences from some other interface than the iPad's keyboard. For instance, the most desirable solution is to be able to write sentences into text files and import them into the application through iTunes.
I have seen a few different apps capable of receiving files through iTunes, such as the VLC app in which the user can place videos into the VLC app's video storage. This allows VLC to then load the videos. I'm wondering if there is a good way or even if it's possible to do this with text files in my app, so that I may then read them into core data.
Thanks,
Chris
This is possible... First of all you need to add a value to your info.plist file which enables iTunes file sharing (like with VLC etc.) "UIFileSharingEnabled -> YES"
Then you can store files through iTunes. These files are put into your applications "Documents" - directory... When launching your application, you will need to check if new files are available and handle these changes...
You can also add document types / extensions, so that when you are sent an email with a txt file, it can be opened with your application. How do I register a custom filetype in iOS

Resources