Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to To validate Xcode: "in sealed resource is missing or invalid"
I get the same error, too. I have replaced the black DVTIbeamCursor.tiff cursor with a white one (because I use a dark colour scheme and apparently Apple doesn't believe that I should use anything other than an eye-straining bright scheme). I wonder if that could have caused it? I used to save the original cursor but after quite a few versions of successfully changing this everytime I install a new Xcode, I decided there was no need to bother.
Sep ’15
Storing raw h.264 video to a app file
Hey everything,So I’m a recent grad thats learning on the fly. They never taught us iOS development in my CS program.With that, i have a raw h.264 camera feed that has some unque properties. My AV guy needs me to make in app file of this raw streaming H.264 video.So i need to create a file for a raw h.264 video stream. I don’t really know what type of file format to use here. I just need the data to be exactly what’s being streamed from the camera. This video stream is sent from a third party camera in a buffer withunit8_t (which is the stream data type and int length ( which is the length of the stream).I need to be able to record this in its raw form to a file. Not a text file preferablyCan you create a binary file in iOS?Can raw data be put into a .MP4 File?here's my code so farNOTE: the camera method, when called retires the steaming video data from the camera.-(void) camera:(DJICamera*)camera didReceivedVideoData:(uint8_t*)videoBuffer length:(int)length{/ uint8_t* pBuffer = (uint8_t*)malloc(length);/memc
0
0
476
Sep ’15
Disable auto translation of OpenGL Shaders to Metal
During one of the Metal WWDC presentations, they mentioned that OpenGL shaders will automatically get translated to Metal, no work needs to be done on the developer's end.There's a known bug in iOS 9.x SpriteKit where any shader that uses gl_FragCoord (very common) crashes with a Metal error on Metal compatible devices (it works fine in the simulator or devices that do not support Metal). My question is: Is there any way to stop this auto translation of OpenGL shaders to Metal? A compiler flag or anything to tell the program to never use Metal or translate anything to Metal?
5
0
4.7k
Sep ’15
Does iOS 9 prevent javascript from opening my app with a custom url scheme?
We have a web page that redirects to our app with a deep link if it happens to be installed on your phone. This no longer works in iOS 9. I'm aware of the new Universal Links in iOS 9, but we don't have time to implement this before our release (in 2-3 weeks) nor will they work on the version of our app that is already in the field. Here is the javascript code that is used by the web page: if (window.location.hash !== '#noredirect') { var frame = document.createElement('iframe'); window.location.hash = 'noredirect'; document.body.appendChild(frame); frame.style.display = 'none'; frame.src = #{@app_url}; } window.setTimeout(function() { document.getElementById('redirectHelper').style.display = 'block'; window.location = #{@redirect_url}; }, 1500);
4
0
2.7k
Sep ’15
Reply to Metal drawable sync rate : try 2
Hi PJ -Thanks for the feedback, but unfortunately that can't work in our case.While CA has a native 60hz refresh - we're targetting 30hz via CADisplayLink.>>You want to ensure your present doesn't land in the current 60Hz interval but the next one so should target between>>17ms and 33ms into the future (1.f/60.f * 1.2f would be a good choice).That math assumes the building of our command buffer + driver & GPU consumption all happen within 2x 60hz ticks.We've got two operations to do -- build the command buffer, and have the driver + GPU consume the command buffer.The odd of that happening completely within the current 33ms frame (from CADisplayLink tick -> 2x 60hz intervals) is zero 🙂 Thats why we target 30hz not 60hz. And we're assuming the driver + GPU run in parallel with our CPU thread building the next command buffer.(I'd attach a diagram from Metal System Trace, but it seems forum posts + images places them in moderation limbo, i'll attempt with ASCII)What we're expecting to do:a) Ti
Topic: Graphics & Games SubTopic: General Tags:
Sep ’15
Error Launching 'watch kit OS2 extension' when running Notification Scheme
Receiving this error using xcode 7 GM with a Notification Scheme using iPhone 6 + Apple Watch 38mm when building and running. IOS app and watch app work in Simulators. Sub message is 'SPErrorUnknownMessage'. Have Reset Content and Settings which results in 'black' screen for watch simulator, then error message in xcode.Last few messages in System.Log for watch OS2:gizmoappd[3229]: (Error) WatchKit: Unable to find a native plugin for identifier com.appname.watchapp--- last message repeated 2 times ---com.apple.CoreSimulator.SimDevice.4F304B64-16AD-4F3C-82C3-10712F361EBC.launchd_sim[3207] (com.apple.xpc.launchd.domain.pid.(premature birth).0): assertion failed: 14F27: launchd_sim + 114772 [C199BB42-75A4-3253-9467-9D3B6189DEF5]: 0x1com.apple.CoreSimulator.SimDevice.4F304B64-16AD-4F3C-82C3-10712F361EBC.launchd_sim[3207] (com.apple.xpc.launchd.domain.pid.(premature birth).0): Could not resolve origin of domain. XPC services in this domain's bundle will not be bootstrapped: error = 3: No such process, tain
7
0
1.5k
Sep ’15
Encountered strange problem with xcodebuild of Xcode7.0
I have a shell script dopack.sh which contains the following lines:# clean project first xcodebuild clean -sdk ${TARGET_SDK} -configuration ${TARGET_CONFIG} # start build project xcodebuild -workspace ${PROJECT_NAME}.xcworkspace -scheme ${PROJECT_NAME} SYMROOT=${BUILD_DIR} -configuration ${TARGET_CONFIG} -sdk ${TARGET_SDK} > ${SHELLLOGFILE}I also have a php script testpack.php:<?php $result = exec('/absolute-path-to/dopack.sh Release'); if ($result) { echo 'YES'; } else { echo 'NO'; } ?>These two scripts works perfectly fine with me for more than two years. It works fine with Xcode5.x to Xcode6.4.But when i upgraded my Xcode to 7.0, strange things occured.When i ran the following commmand directly in Terminal, it worked fine and reached the line ** BUILD SUCCEEDED **xcodebuild -workspace ${PROJECT_NAME}.xcworkspace -scheme ${PROJECT_NAME} SYMROOT=${BUILD_DIR} -configuration ${TARGET_CONFIG} -sdk ${TARGET_SDK}And when i execute the php script directly in Terminal, it also worked perf
5
0
2.7k
Sep ’15
Reply to TVTopShelfProvider not initialising
For me a TVContentItem-section with TVContentItem-items works fine. Just add the extension, insert a image (e.g. TVSelf.jpg) and paste following code:var topShelfItems: [TVContentItem] { guard let tvContentIdentifier = TVContentIdentifier(identifier: 123456789, container: nil) else { fatalError(Error creating content identifier.) } guard let tvContentItem = TVContentItem(contentIdentifier: tvContentIdentifier) else { fatalError(Error creating content item.) } guard let imageURL = NSBundle.mainBundle().URLForResource(TVSelf, withExtension: jpg) else { fatalError(Error creating image URL.) } tvContentItem.imageURL = imageURL tvContentItem.imageShape = .Square tvContentItem.displayURL = NSURL(string: URL) guard let sectionIdentifier = TVContentIdentifier(identifier: 987654321, container: nil) else { fatalError(Error creating section identifier.) } guard let sectiontItem = TVContentItem(contentIdentifier: sectionIdentifier) else { fatalError(Error creating section item.) } sectiontItem.title = Section sectiontIte
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
iOS builds / ipa creation no longer works from the command line
OverviewOur command line builds (to build and create the .ipa) are no longer working.iTunesConnect has started rejecting builds that use the CODE_SIGN_RESOURCE_RULES_PATH build setting.If we build WITHOUT that setting the PackageApplication tool (which we use to create the signed .ipa) fails.It seems that PackageApplication calls /usr/bin/codesign with resource-rules arguments even if the CODE_SIGN_RESOURCE_RULES_PATH build setting is excludedI suspect the PackageApplication needs to be updated so that it does not call /usr/bin/codesign with resource-rules arguments when the CODE_SIGN_RESOURCE_RULES_PATH build setting is excluded.Has anyone found a solution for this?DetailsWe build our app on the command line like this:xcodebuild -workspace myApp.xcworkspace -scheme myApp -sdk iphoneos -configuration AppStoreDistribution OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO 'CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist'We create the signed .ipa on the command line like this:xcrun
2
0
7.6k
Sep ’15
Reply to Universal Apps
The new scheme is 'Universal Purchase'...not to be confused with a traditional universal app for iPhone/iPad.It simply means users can enjoy a single purchase where there are both ATV and iOS apps involved.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Provisioning Issue
I am having issue with provisioning after updating to Xcode 7. I get an error when trying to archive with a distribution scheme: No matching provisioning profiles found: No valid 'development' profiles were found. The account I am using is an Enterprise Program account. I have verified that my certificates and profiles are all present and valid. I have seen a thread on the developer forums with the same issue but no solution was suggested. Any help would be appreciated
2
0
472
Sep ’15
Reply to Reduced CPU usage w/ Time Profiler?
By default, the profile action uses a release configuration, while the run action uses debug. If you change your scheme so the run action uses a release configuration (from the Product menu, select Scheme, then Edit Scheme), does it match the performance you see while profiling?Note that using the release configuration can make debugging more difficult, so you normally want it on debug while you're working on your app.
Sep ’15
Coredata model version recognition issue for a new target
Hi,I have a project which has datamodel (Coredata) and currently it is versioned (modified the datamodel). The base target works as expected in all the new coredata classes. Now I am trying to build new target with just one variables changed (no data morel or logic change). I used the DUPLICATE the target approach in the project info screens and created new target based on the current default target, renamed in manage scheme screen. Build was succesful and app worked ok until it hits the area where the new classes are referenced. At this time, the app stuck with the following message:CoreData: warning: Unable to load class named <Newclass in datamodel> for entity 'NAVDetailedResults'. Class not found, using default NSManagedObject insteadSame codebase (with no change at all), if I build for base target, the app works fine and no error. Looks like the new target is still linking at older version of the datamodel. I was trying to find whether we link the datamodel version explicitly in the build
1
0
286
Sep ’15
Reply to URL scheme for the Movies app
That code looks like it expects a video URL to an actual m3u8, ks that true? OP is talking about a URL to an iTunes Store listing for a movie. I'm looking to answer the same question. Setting up my hardware this weekend, so I'lll try the itns scheme. Hoping there is a way to make thsi work, feels like a huge oversight if it doesn't.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to 24p Video Playback
Am I missing something here? 24p translates to NTSC standard of 23.976 fps. 25 fps in PAL/SECAM...This isn't the same as the accelorated framerates used in some current big budget films which cram40fps or more in The Hobbit trilogy is one such example.Clearly, TidBits answer was directly in response to apps Apps do not have the ability to affect the device output framerate.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to To validate Xcode: "in sealed resource is missing or invalid"
I get the same error, too. I have replaced the black DVTIbeamCursor.tiff cursor with a white one (because I use a dark colour scheme and apparently Apple doesn't believe that I should use anything other than an eye-straining bright scheme). I wonder if that could have caused it? I used to save the original cursor but after quite a few versions of successfully changing this everytime I install a new Xcode, I decided there was no need to bother.
Replies
Boosts
Views
Activity
Sep ’15
Storing raw h.264 video to a app file
Hey everything,So I’m a recent grad thats learning on the fly. They never taught us iOS development in my CS program.With that, i have a raw h.264 camera feed that has some unque properties. My AV guy needs me to make in app file of this raw streaming H.264 video.So i need to create a file for a raw h.264 video stream. I don’t really know what type of file format to use here. I just need the data to be exactly what’s being streamed from the camera. This video stream is sent from a third party camera in a buffer withunit8_t (which is the stream data type and int length ( which is the length of the stream).I need to be able to record this in its raw form to a file. Not a text file preferablyCan you create a binary file in iOS?Can raw data be put into a .MP4 File?here's my code so farNOTE: the camera method, when called retires the steaming video data from the camera.-(void) camera:(DJICamera*)camera didReceivedVideoData:(uint8_t*)videoBuffer length:(int)length{/ uint8_t* pBuffer = (uint8_t*)malloc(length);/memc
Replies
0
Boosts
0
Views
476
Activity
Sep ’15
Disable auto translation of OpenGL Shaders to Metal
During one of the Metal WWDC presentations, they mentioned that OpenGL shaders will automatically get translated to Metal, no work needs to be done on the developer's end.There's a known bug in iOS 9.x SpriteKit where any shader that uses gl_FragCoord (very common) crashes with a Metal error on Metal compatible devices (it works fine in the simulator or devices that do not support Metal). My question is: Is there any way to stop this auto translation of OpenGL shaders to Metal? A compiler flag or anything to tell the program to never use Metal or translate anything to Metal?
Replies
5
Boosts
0
Views
4.7k
Activity
Sep ’15
Does iOS 9 prevent javascript from opening my app with a custom url scheme?
We have a web page that redirects to our app with a deep link if it happens to be installed on your phone. This no longer works in iOS 9. I'm aware of the new Universal Links in iOS 9, but we don't have time to implement this before our release (in 2-3 weeks) nor will they work on the version of our app that is already in the field. Here is the javascript code that is used by the web page: if (window.location.hash !== '#noredirect') { var frame = document.createElement('iframe'); window.location.hash = 'noredirect'; document.body.appendChild(frame); frame.style.display = 'none'; frame.src = #{@app_url}; } window.setTimeout(function() { document.getElementById('redirectHelper').style.display = 'block'; window.location = #{@redirect_url}; }, 1500);
Replies
4
Boosts
0
Views
2.7k
Activity
Sep ’15
Reply to Metal drawable sync rate : try 2
Hi PJ -Thanks for the feedback, but unfortunately that can't work in our case.While CA has a native 60hz refresh - we're targetting 30hz via CADisplayLink.>>You want to ensure your present doesn't land in the current 60Hz interval but the next one so should target between>>17ms and 33ms into the future (1.f/60.f * 1.2f would be a good choice).That math assumes the building of our command buffer + driver & GPU consumption all happen within 2x 60hz ticks.We've got two operations to do -- build the command buffer, and have the driver + GPU consume the command buffer.The odd of that happening completely within the current 33ms frame (from CADisplayLink tick -> 2x 60hz intervals) is zero 🙂 Thats why we target 30hz not 60hz. And we're assuming the driver + GPU run in parallel with our CPU thread building the next command buffer.(I'd attach a diagram from Metal System Trace, but it seems forum posts + images places them in moderation limbo, i'll attempt with ASCII)What we're expecting to do:a) Ti
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’15
Error Launching 'watch kit OS2 extension' when running Notification Scheme
Receiving this error using xcode 7 GM with a Notification Scheme using iPhone 6 + Apple Watch 38mm when building and running. IOS app and watch app work in Simulators. Sub message is 'SPErrorUnknownMessage'. Have Reset Content and Settings which results in 'black' screen for watch simulator, then error message in xcode.Last few messages in System.Log for watch OS2:gizmoappd[3229]: (Error) WatchKit: Unable to find a native plugin for identifier com.appname.watchapp--- last message repeated 2 times ---com.apple.CoreSimulator.SimDevice.4F304B64-16AD-4F3C-82C3-10712F361EBC.launchd_sim[3207] (com.apple.xpc.launchd.domain.pid.(premature birth).0): assertion failed: 14F27: launchd_sim + 114772 [C199BB42-75A4-3253-9467-9D3B6189DEF5]: 0x1com.apple.CoreSimulator.SimDevice.4F304B64-16AD-4F3C-82C3-10712F361EBC.launchd_sim[3207] (com.apple.xpc.launchd.domain.pid.(premature birth).0): Could not resolve origin of domain. XPC services in this domain's bundle will not be bootstrapped: error = 3: No such process, tain
Replies
7
Boosts
0
Views
1.5k
Activity
Sep ’15
Encountered strange problem with xcodebuild of Xcode7.0
I have a shell script dopack.sh which contains the following lines:# clean project first xcodebuild clean -sdk ${TARGET_SDK} -configuration ${TARGET_CONFIG} # start build project xcodebuild -workspace ${PROJECT_NAME}.xcworkspace -scheme ${PROJECT_NAME} SYMROOT=${BUILD_DIR} -configuration ${TARGET_CONFIG} -sdk ${TARGET_SDK} > ${SHELLLOGFILE}I also have a php script testpack.php:<?php $result = exec('/absolute-path-to/dopack.sh Release'); if ($result) { echo 'YES'; } else { echo 'NO'; } ?>These two scripts works perfectly fine with me for more than two years. It works fine with Xcode5.x to Xcode6.4.But when i upgraded my Xcode to 7.0, strange things occured.When i ran the following commmand directly in Terminal, it worked fine and reached the line ** BUILD SUCCEEDED **xcodebuild -workspace ${PROJECT_NAME}.xcworkspace -scheme ${PROJECT_NAME} SYMROOT=${BUILD_DIR} -configuration ${TARGET_CONFIG} -sdk ${TARGET_SDK}And when i execute the php script directly in Terminal, it also worked perf
Replies
5
Boosts
0
Views
2.7k
Activity
Sep ’15
Reply to TVTopShelfProvider not initialising
For me a TVContentItem-section with TVContentItem-items works fine. Just add the extension, insert a image (e.g. TVSelf.jpg) and paste following code:var topShelfItems: [TVContentItem] { guard let tvContentIdentifier = TVContentIdentifier(identifier: 123456789, container: nil) else { fatalError(Error creating content identifier.) } guard let tvContentItem = TVContentItem(contentIdentifier: tvContentIdentifier) else { fatalError(Error creating content item.) } guard let imageURL = NSBundle.mainBundle().URLForResource(TVSelf, withExtension: jpg) else { fatalError(Error creating image URL.) } tvContentItem.imageURL = imageURL tvContentItem.imageShape = .Square tvContentItem.displayURL = NSURL(string: URL) guard let sectionIdentifier = TVContentIdentifier(identifier: 987654321, container: nil) else { fatalError(Error creating section identifier.) } guard let sectiontItem = TVContentItem(contentIdentifier: sectionIdentifier) else { fatalError(Error creating section item.) } sectiontItem.title = Section sectiontIte
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
iOS builds / ipa creation no longer works from the command line
OverviewOur command line builds (to build and create the .ipa) are no longer working.iTunesConnect has started rejecting builds that use the CODE_SIGN_RESOURCE_RULES_PATH build setting.If we build WITHOUT that setting the PackageApplication tool (which we use to create the signed .ipa) fails.It seems that PackageApplication calls /usr/bin/codesign with resource-rules arguments even if the CODE_SIGN_RESOURCE_RULES_PATH build setting is excludedI suspect the PackageApplication needs to be updated so that it does not call /usr/bin/codesign with resource-rules arguments when the CODE_SIGN_RESOURCE_RULES_PATH build setting is excluded.Has anyone found a solution for this?DetailsWe build our app on the command line like this:xcodebuild -workspace myApp.xcworkspace -scheme myApp -sdk iphoneos -configuration AppStoreDistribution OBJROOT=$PWD/build SYMROOT=$PWD/build ONLY_ACTIVE_ARCH=NO 'CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist'We create the signed .ipa on the command line like this:xcrun
Replies
2
Boosts
0
Views
7.6k
Activity
Sep ’15
Reply to Universal Apps
The new scheme is 'Universal Purchase'...not to be confused with a traditional universal app for iPhone/iPad.It simply means users can enjoy a single purchase where there are both ATV and iOS apps involved.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Provisioning Issue
I am having issue with provisioning after updating to Xcode 7. I get an error when trying to archive with a distribution scheme: No matching provisioning profiles found: No valid 'development' profiles were found. The account I am using is an Enterprise Program account. I have verified that my certificates and profiles are all present and valid. I have seen a thread on the developer forums with the same issue but no solution was suggested. Any help would be appreciated
Replies
2
Boosts
0
Views
472
Activity
Sep ’15
Reply to Reduced CPU usage w/ Time Profiler?
By default, the profile action uses a release configuration, while the run action uses debug. If you change your scheme so the run action uses a release configuration (from the Product menu, select Scheme, then Edit Scheme), does it match the performance you see while profiling?Note that using the release configuration can make debugging more difficult, so you normally want it on debug while you're working on your app.
Replies
Boosts
Views
Activity
Sep ’15
Coredata model version recognition issue for a new target
Hi,I have a project which has datamodel (Coredata) and currently it is versioned (modified the datamodel). The base target works as expected in all the new coredata classes. Now I am trying to build new target with just one variables changed (no data morel or logic change). I used the DUPLICATE the target approach in the project info screens and created new target based on the current default target, renamed in manage scheme screen. Build was succesful and app worked ok until it hits the area where the new classes are referenced. At this time, the app stuck with the following message:CoreData: warning: Unable to load class named <Newclass in datamodel> for entity 'NAVDetailedResults'. Class not found, using default NSManagedObject insteadSame codebase (with no change at all), if I build for base target, the app works fine and no error. Looks like the new target is still linking at older version of the datamodel. I was trying to find whether we link the datamodel version explicitly in the build
Replies
1
Boosts
0
Views
286
Activity
Sep ’15
Reply to URL scheme for the Movies app
That code looks like it expects a video URL to an actual m3u8, ks that true? OP is talking about a URL to an iTunes Store listing for a movie. I'm looking to answer the same question. Setting up my hardware this weekend, so I'lll try the itns scheme. Hoping there is a way to make thsi work, feels like a huge oversight if it doesn't.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to 24p Video Playback
Am I missing something here? 24p translates to NTSC standard of 23.976 fps. 25 fps in PAL/SECAM...This isn't the same as the accelorated framerates used in some current big budget films which cram40fps or more in The Hobbit trilogy is one such example.Clearly, TidBits answer was directly in response to apps Apps do not have the ability to affect the device output framerate.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15