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.
Related
I am trying to include Tap To Pay on iPhone functionality in Cordova Plugin, after including the plugin in my Ionic project and trying to build, I get this error eventually:
d/sharedpch -pch-disable-validation -module-name Product -frontend-parseable-output -disable-clang-spi -target-sdk-version 16.1 -parse-as-library -o /Users/mads/Library/Developer/Xcode/DerivedData/Product-anlvmriclbyybqfhfhbdkszgzqql/Build/Intermediates.noindex/Product.build/Debug-iphonesimulator/Product.build/Objects-normal/x86_64/CDVTapToPay.o -index-unit-output-path /Product.build/Debug-iphonesimulator/Product.build/Objects-normal/x86_64/CDVTapToPay.o -index-store-path /Users/mads/Library/Developer/Xcode/DerivedData/Product-anlvmriclbyybqfhfhbdkszgzqql/Index.noindex/DataStore -index-system-modules
/Users/mads/company/2/menon/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'Branch' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting\ module\ for\ Product (in target 'Product' from project 'Product')
(1 failure)
Command finished with error code 65: xcodebuild -workspace,Product.xcworkspace,-scheme,Product,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 14 Pro Max,build,CONFIGURATION_BUILD_DIR=/Users/mads/company/2/menon/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/mads/company/2/menon/platforms/ios/build/sharedpch
xcodebuild: Command failed with exit code 65
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/Users/mads/company/2/menon/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:136:25)
at ChildProcess.emit (events.js:193:13)
at maybeClose (internal/child_process.js:999:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --verbose exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +2ms
ionic:utils-process processExit: exiting (exit code: 65) +62ms
It says it in your error log
The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99
Just change your target, in your config.xml
<preference name="deployment-target" value="12.0" />
I am a flutter newbie and I get this error when trying to run/build for iOS. I tried to clean Xcode, clean flutter, remove flutter, remove iOS folder, remove and re-download Xcode, but still.
No difference when trying to build from Xcode or vscode terminal.
what gets logged :
Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...
Xcode build done. 7.3s
Failed to build iOS app
Error output from Xcode build:
↳
2022-07-28 17:04:40.105 xcodebuild[34247:421486] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in
com.apple.dt.IDEWatchSupportCore
2022-07-28 17:04:40.105 xcodebuild[34247:421486] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/sy/mftlbsd5489gl3102v5z7fwm0000gp/T/flutter_tools.RmfxI1/flutter_ios_build_temp_dirho9O3B/temporary_xcresult_bundle
Command CompileSwiftSources failed with a nonzero exit code
Command CompileSwiftSources failed with a nonzero exit code
ld: framework not found installDir
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/sy/mftlbsd5489gl3102v5z7fwm0000gp/T/flutter_tools.RmfxI1/flutter_ios_build_temp_dirho9O3B/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Error (Xcode): Framework not found installDir
Could not build the application for the simulator.
Error launching application on iPhone 11.
Try to do this:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
I checked my notes and found similar case in my experience.
Try to run these commands twice:
xcrun -sdk iphoneos --show-sdk-path
xcrun -sdk iphoneos --show-sdk-version
xcrun -sdk iphoneos --show-sdk-build-version
xcrun -sdk iphoneos --show-sdk-platform-path
xcrun -sdk iphoneos --show-sdk-platform-version
First run I got error, next time it works.
I'm trying to build in build-flavors in my app. Android no problem but iOS gives an error when I try to export the ipa.
terminal:
➜ roger git:(ios-flavors) flutter build ios --flavor development
Building be.modero.rogerapp.development for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: **********
Running pod install... 7.8s
Running Xcode build...
└─Compiling, linking and signing... 24.1s
Xcode build done. 179.1s
Built /.../build/ios/iphoneos/Runner.app.
➜ roger git:(ios-flavors) xcodebuild -sdk iphoneos -configuration Alpha -workspace ios/Runner.xcworkspace -scheme development build -verbose | xcpretty
error:
▸ Compiling GeneratedPluginRegistrant.m
❌ /.../ios/Runner/GeneratedPluginRegistrant.m:12:9: module 'camera' not found
#import camera;
^
▸ Compiling Runner_vers.c
** BUILD FAILED **
The following build commands failed:
CompileC /Users/wim/Library/Developer/Xcode/DerivedData/Runner-dhynqmoqlyqjqtaxqfpznxnuxyab/Build/Intermediates.noindex/Runner.build/Debug-integration-iphoneos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o /.../ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Runner' from project 'Runner')
(1 failure)
I am trying to add AEXML module (https://github.com/tadija/AEXML) for XML parsing in my iOS 10 application with Xcode 8. However, I am getting this error while building dependencies with the command carthage update --platform iOS.
Swift Version: 3.0
Xcode Version: 8
Carthage Version: 0.17.2
cartfile
github "tadija/AEXML"
Error after running carthage update --platform iOS command
gsirn-021308:ApplePaySwag-Final chandeln$ swift -version
Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38)
Target: x86_64-apple-macosx10.9
gsirn-021308:ApplePaySwag-Final chandeln$ carthage update --platform iOS
*** Fetching AEXML
*** Checking out AEXML at "4.0.0"
*** xcodebuild output can be found in /var/folders/q7/bltc5kls62n2mzlvwhctctzr0000gn/T/carthage-xcodebuild.3NnOoT.log
*** Building scheme "AEXML iOS" in AEXML.xcodeproj
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/Tests/AEXMLTests.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/AEXML.xcodeproj -scheme AEXML iOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/chandeln/Documents/ApplePaySwag-Final/Carthage/Checkouts/AEXML/Tests/AEXMLTests.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
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.