I'm having some problems with CompileXIB at Cordova.
System Information:
OS X Yosemite Beta 10.10
XCode 6 Beta 5
Everytime I try to run cordova build ios the terminal just "freeze" at this part:
CompileXIB ToGo/Classes/MainViewController.xib
cd /Applications/mampstack-5.4.15-0/apache2/htdocs/toGo_app/platforms/ios
export PATH="/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin:/Users/yeltsin/google-cloud-sdk/bin:/Users/yeltsin/.rvm/gems/ruby-2.1.2/bin:/Users/yeltsin/.rvm/gems/ruby-2.1.2#global/bin:/Users/yeltsin/.rvm/rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Users/yeltsin/.rvm/bin:/Developer/android/sdk/platform-tools:/Developer/android/sdk/tools"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin/..
/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --target-device ipad --errors --warnings --notices --module ToGo --minimum-deployment-target 6.0 --output-partial-info-plist /Applications/mampstack-5.4.15-0/apache2/htdocs/toGo_app/platforms/ios/build/ToGo.build/Debug-iphonesimulator/ToGo.build/MainViewController-PartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Applications/mampstack-5.4.15-0/apache2/htdocs/toGo_app/platforms/ios/build/emulator/ToGo.app/MainViewController.nib /Applications/mampstack-5.4.15-0/apache2/htdocs/toGo_app/platforms/ios/ToGo/Classes/MainViewController.xib
Doesn't shows an error. Just don't proceed. I tried with this project and with another one and both are having the same problems.
How can I fix this? :(
Thanks,
Yeltsin
You want to make sure that you have the non-Beta Xcode installed, otherwise you will continue to get this error.
Related
I created new project and try to add app icon then i am getting this error. its a simple basic project. Without app icon its working.
ERROR
CompileAssetCatalog /Users/erp/Library/Developer/Xcode/DerivedData/DemoTest-gghfwavjnoyltpgzkiiyjwajblna/Build/Products/Debug-iphoneos/DemoTest.app DemoTest/Preview\ Content/Preview\ Assets.xcassets DemoTest/Assets.xcassets
cd /Users/erp/Desktop/AppleFolder/demotest/DemoTest
export PATH="/Users/erp/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/erp/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/erp/Downloads/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/erp/Library/Developer/Xcode/DerivedData/DemoTest-gghfwavjnoyltpgzkiiyjwajblna/Build/Intermediates.noindex/DemoTest.build/Debug-iphoneos/DemoTest.build/assetcatalog_dependencies --output-partial-info-plist /Users/erp/Library/Developer/Xcode/DerivedData/DemoTest-gghfwavjnoyltpgzkiiyjwajblna/Build/Intermediates.noindex/DemoTest.build/Debug-iphoneos/DemoTest.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone8,1 --filter-for-device-os-version 13.3.1 --sticker-pack-identifier-prefix com.alnaba.demotest.DemoTest.sticker-pack. --development-region en --target-device iphone --minimum-deployment-target 13.0 --platform iphoneos --product-type com.apple.product-type.application --compile /Users/erp/Library/Developer/Xcode/DerivedData/DemoTest-gghfwavjnoyltpgzkiiyjwajblna/Build/Products/Debug-iphoneos/DemoTest.app /Users/erp/Desktop/AppleFolder/demotest/DemoTest/DemoTest/Preview\ Content/Preview\ Assets.xcassets /Users/erp/Desktop/AppleFolder/demotest/DemoTest/DemoTest/Assets.xcassets
I got this error when i ran
ionic cordova run ios --device
65%] PreflightingApplication
2019-06-24 14:28:21.032 ios-deploy[7890:179934] [ !! ] Error 0xe800007e: The device OS version is too low. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
ios-deploy: Command failed with exit code 253
[ERROR] An error occurred while running subprocess cordova.
cordova run ios --device exited with exit code 253.
My
output for xcodebuild -showsdks
i
OS SDKs:
iOS 11.2 -sdk iphoneos11.2
iOS Simulator SDKs:
Simulator - iOS 11.2 -sdk iphonesimulator11.2
macOS SDKs:
macOS 10.13 -sdk macosx10.13
tvOS SDKs:
tvOS 11.2 -sdk appletvos11.2
tvOS Simulator SDKs:
Simulator - tvOS 11.2 -sdk appletvsimulator11.2
watchOS SDKs:
watchOS 4.2 -sdk watchos4.2
watchOS Simulator SDKs:
Simulator - watchOS 4.2 -sdk watchsimulator4.2
Have you tried overriding the deployment target? Try adding to your config.xml:
<platform name="ios">
<preference name="deployment-target" value="11.2" />
</platform>
I'm in a strange situation where I can get xctool to run my test but I cant figure out the equivalent command line to get xcodebuild and/or fastlane scan to run my tests.
I have an iPad only application with a single scheme and two targets (otto and ottoTests)
Working XCTool Commandline
xctool -scheme otto \
-sdk iphonesimulator \
CODE_SIGN_IDENTITY=""\
CODE_SIGNING_REQUIRED=NO \
-reporter pretty\
-reporter junit:./test-reports/otto.xml\
build test
Xcodebuild - fail
xcodebuild -sdk iphonesimulator \
-scheme otto \
test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
I get this error that
A build only device cannot be used to run this target
So I'm kind of at a loss here exactly what is different between xcodebuild and whatever xctool is running.
AFAICS, you are missing the -destination argument in the xcodebuild command. Refer to this tutorial for sample code.
You're missing the -destination argument.
xcodebuild \
-workspace MyApp.xcworkspace \
-scheme MyWatchKitApp
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.1' \
build
To list all valid values for destination run instruments -s devices.
e.g.
$ instruments -s devices
Known Devices:
Apple TV 1080p (10.0) [A0DA01A6-CAC6-4562-93B9-749920DCEFAA] (Simulator)
Apple Watch - 38mm (2.0) [9D6C53FB-0D69-4A0A-83CB-CBB55EE63AA6] (Simulator)
Apple Watch - 38mm (2.0) [BF24D5AC-8DB5-4D18-A6FD-B92292084B8A] (Simulator)
Apple Watch - 42mm (2.0) [286C7921-3689-4832-B0C7-52B412C0C2F5] (Simulator)
Apple Watch - 42mm (2.0) [16144840-5E1B-4934-A82D-E2A49FF79392] (Simulator)
iPad 2 (8.1) [8D0AD02D-C78F-4D59-BBA5-1E7AB452A852] (Simulator)
iPad 2 (9.3) [16D6261C-8FBD-4865-8E6A-840800A96C4A] (Simulator)
iPad Air (10.0) [374DB3F8-65CB-4AD1-919F-808C0C2FCEE1] (Simulator)
iPad Air (8.1) [E83D1680-C5EE-4E86-B847-16FF8C0B7F98] (Simulator)
iPad Air (9.3) [82F4AEC6-A778-44D9-88DB-A95126904E1A] (Simulator)
iPad Air 2 (10.0) [E68ED558-4E83-46A3-892C-93786CF947FC] (Simulator)
iPad Air 2 (9.3) [F1521496-CA53-41CC-A1DA-F605B961B3E5] (Simulator)
iPad Pro (12.9 inch) (10.0) [D87A6656-DEB4-41BB-B45A-2A3D85BFED8A] (Simulator)
iPad Pro (9.3) [968E6D5E-6881-4DB2-B274-2BF0DC0FDE24] (Simulator)
iPad Pro (9.7 inch) (10.0) [55B31895-0A68-4060-8441-A845F63FA4FB] (Simulator)
iPad Retina (10.0) [7725C135-7211-43E2-8BB4-9455C3820DB4] (Simulator)
iPad Retina (8.1) [E4825B7A-5A53-49AF-AD27-62711CA97B66] (Simulator)
iPad Retina (9.3) [F0523C54-9F37-4209-844C-9CA4A174791A] (Simulator)
Unfortunately you can't just copy and paste these lines. You'll need to use your impressive human pattern matching skills to fill in the proper values for the platform=, name=, and OS= parameters to -destination.
Source http://www.mokacoding.com/blog/xcodebuild-destination-options/
Having updated from Xcode 7.0 Beta 3 to 7.1 Beta (all intermediate releases including the 7.0 GM had a crash-on-launch bug for my project, which has only been fixed in 7.1 Beta) I can't build my project due to the following error:
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard
cd /Users/me/Developer/my-app
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthboxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard
/ com.apple.ibtool.errors */
: error: Not enough arguments provided; where is the input document to operate on?
Xcode is configured to use the Xcode 7.1 (7B60) command line tools:
$ xcode-select -p
/Applications/Xcode-beta.app/Contents/Developer
And ibtool appears to be the correct version:
$ ibtool --version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-/
<plist version="1.0">
<dict>
<key>com.apple.ibtool.version</key>
<dict>
<key>bundle-version</key>
<string>9046</string>
<key>short-bundle-version</key>
<string>7.1</string>
</dict>
</dict>
</plist>
EDIT: Comparing the output from a successful build in Xcode 7.0 Beta 3 (formatted for clarity):
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard
cd /Users/me/Developer/my-app
export PATH="/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH="/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/usr/bin/.."
/Applications/Xcode\ 7.0\ Beta/Xcode-beta.app/Contents/Developer/usr/bin/ibtool
--errors
--warnings
--notices
--module MyApp
--output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthboxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist
--auto-activate-custom-fonts
--target-device iphone
--minimum-deployment-target 8.0
--output-format human-readable-text
--compilation-directory /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthboxucdaodqtbbbwgsaz/Build/Products/Debug-iphonesimulator/MyApp.app
/Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard
2015-09-17 15:44:06.451 Interface Builder Cocoa Touch Tool[1216:88742] Error creating notification handler for simulator graphics quality override: 1000000
with the unsuccessful one from Xcode 7.1 Beta:
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard
cd /Users/me/Developer/my-app
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool
--errors
--warnings
--notices
--module MyApp
--output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthboxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist
--auto-activate-custom-fonts
--target-device iphone
--minimum-deployment-target 8.0
--output-format human-readable-text
--compilation-directory
/Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard
/* com.apple.ibtool.errors */
: error: Not enough arguments provided; where is the input document to operate on?
reveals that I seem to be missing a value for the --compilation-directory argument and so the path to the storyboard is being used instead of as the target file for compilation.
Is it possible to inspect/modify this compilation step or is this likely a bug in Xcode?
So thanks to an Apple support staff member, the solution is to move the Main.storyboard file from the Compile Sources build phase to the Copy Bundle Resources phase.
Adding another potential answer for "Error creating notification handler for simulator graphics quality override". I got this error when I added a run script in xcode build phases, and then dragged the script to the sop to make it run pre-build. No idea why this happened, but when I dragged the run script window back down to the bottom it fixed it.
Starting with a fresh ionic install and then adding plugins, they are not added to the ios folder. I tried ionic prepare which results in add to body class: platform-ios but it does not add the plugins to the ios directory and results in this error:
CompileXIB moodtracker/Resources/DatePicker.xib
cd /Users/tomchambers/projects/moodtrackerApp/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/tomchambers/.rvm/gems/ruby-2.1.2/bin:/Users/tomchambers/.rvm/gems/ruby-2.1.2#global/bin:/Users/tomchambers/.rvm/rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/tomchambers/.rvm/bin:/usr/local/mongodb/bin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --target-device iphone --target-device ipad --errors --warnings --notices --module moodtracker --minimum-deployment-target 6.0 --output-partial-info-plist /Users/tomchambers/projects/moodtracker/platforms/ios/build/moodtracker.build/Debug-iphonesimulator/moodtracker.build/DatePicker-PartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compile /Users/tomchambers/projects/moodtrackerApp/platforms/ios/build/emulator/moodtracker.app/DatePicker.nib /Users/tomchambers/projects/moodtrackerApp/platforms/ios/moodtracker/Resources/DatePicker.xib
/* com.apple.ibtool.errors */
/Users/tomchambers/projects/moodtrackerApp/platforms/ios/moodtracker/Resources/DatePicker.xib: error: Interface Builder could not open the document DatePicker.xib" because it does not exist.
** BUILD FAILED **
The following build commands failed:
CpResource moodtracker/Resources/CDVNotification.bundle build/emulator/moodtracker.app/CDVNotification.bundle
CompileXIB moodtracker/Resources/DatePicker.xib
(2 failures)
Error: /Users/tomchambers/projects/moodtrackerApp/platforms/ios/cordova/build: Command failed with exit code 65
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
The only way I've found to make it work is to completely delete the ios build folder and do cordova platform add ios which will readd it with the plugins. This seems very inconvenient.