I'm running into a problem with my final iPhone app build before I send it off to the App Store for approval. This is the first app I've built.
The app sometimes crashes on the actual device I'm testing with (an iPod Touch 2nd G, which is all I have at my disposal), but never in the iPhone simulator. Titanium Developer doesn't spit out any other errors either.
Here's the build/iphone/build/build.log file:
Starting build at 06/15/11 08:32
Build details:
timestamp=04/18/11 17:16
version=1.6.2
githash=878906d
Script arguments:
/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/builder.py
distribute
"4.2"
"/Users/tfontaine/Desktop/MAMP testing/APPS/my_app"
com.example.fest2011
"MYAPP"
##EDITED OUT PROVISIONING NUMBER##
"null"
"/Users/tfontaine/Downloads"
iphone
Building from: /Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone
Platform: Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
Xcode path is: /Developer
Exception detected in script:
Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/builder.py", line 664, in main
provisioning_profile = read_provisioning_profile(pp,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/builder.py", line 216, in read_provisioning_profile
f = open(f,'rb').read()
IOError: [Errno 2] No such file or directory: u'/Users/tfontaine/Library/MobileDevice/Provisioning Profiles/##EDITED OUT PROVISIONING NUMBER##.mobileprovision'
Does this have something to do with acquiring the proper distribution keys?
The only time I get that error is when the provisioning profile is missing or not hooked up properly to a certificate in my keychain. Have you tried this in TiStudio instead of TiDeveloper?
Related
When I run flutter for my physical iOS device it fails to build. I have tried to resolve the problem using flutter clean.
Failed to build iOS app Error output from Xcode build: ↳
** BUILD FAILED **
Xcode's output: ↳
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:88:37:
warning: incompatible pointer types sending 'FlutterEngine ' to
parameter of type
'NSObject * _Nonnull' [-Wincompatible-pointer-types]
binaryMessenger:_headlessEngine];
^~~~~~~~~~~~~~~
In module 'Flutter' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.h:2:
/Users/arhanbusam/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Headers/FlutterChannels.h:178:74:
note: passing argument to parameter 'messenger' here
binaryMessenger:(NSObject)messenger;
^
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:417:74:
warning: 'initWithImage:' is deprecated: first deprecated in iOS 10.0
Use
-initWithBoundsSize:requestHandler: [-Wdeprecated-declarations]
MPMediaItemArtwork *albumArt = [[MPMediaItemArtwork alloc] initWithImage: artworkImage];
^
In module 'MediaPlayer' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:7:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:240:1:
note: 'initWithImage:'
has been explicitly marked deprecated here
(instancetype)initWithImage:(UIImage *)image MP_DEPRECATED("Use -initWithBoundsSize:requestHandler:", ios(5.0, 10.0));
^
2 warnings generated.
warning: MinimumOSVersion of '9.0' is less than the value of IPHONEOS_DEPLOYMENT_TARGET '13.0' - setting to '13.0'. (in target
'Runner' from project 'Runner')
building file list ... done
App.framework/
App.framework/App
App.framework/Info.plist
App.framework/flutter_assets/
App.framework/flutter_assets/AssetManifest.json
App.framework/flutter_assets/FontManifest.json
App.framework/flutter_assets/NOTICES
App.framework/flutter_assets/isolate_snapshot_data
App.framework/flutter_assets/kernel_blob.bin
App.framework/flutter_assets/vm_snapshot_data
App.framework/flutter_assets/assets/
App.framework/flutter_assets/assets/sound1.mp3
App.framework/flutter_assets/assets/sound2.mp3
App.framework/flutter_assets/fonts/
App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf
App.framework/flutter_assets/fonts/NotoSans-Bold.ttf
App.framework/flutter_assets/packages/
App.framework/flutter_assets/packages/cupertino_icons/
App.framework/flutter_assets/packages/cupertino_icons/assets/
App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
sent 40468200 bytes received 348 bytes 26979032.00 bytes/sec
total size is 40462062 speedup is 1.00
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
sent 64435719 bytes received 92 bytes 42957207.33 bytes/sec
total size is 64427549 speedup is 1.00
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/App.framework/App: signed bundle with Mach-O thin
(arm64)
[io.flutter.flutter.app]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/Flutter.framework/Flutter: signed bundle with
Mach-O universal (armv7 arm64)
[io.flutter.flutter]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSBonjourServices
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSLocalNetworkUsageDescription
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/cp", line 5, in
from run.cp_run import cp_start
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/cp_run.py",
line 1, in
from settings.first_load import check_if_first_time
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 114, in
check_if_first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 108, in check_if_first_time
first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 70, in first_time
confirm = input()
EOFError: EOF when reading a line
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
My goal here is to have opencv embedded in macOS application as static framework. I clone the repo
cd opencv/platforms/osx
python build_framework.py build
Then i get the following error
** BUILD FAILED **
The following build commands failed:
CompileC platforms/osx/build/build/build-x86_64-
macosx/modules/world/OpenCV.build/Release/opencv_world.build/Objects-normal/x86_64/opencv-
onnx.pb.o modules/dnn/misc/onnx/opencv-onnx.pb.cc normal x86_64 c++
com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
============================================================
ERROR: Command '['xcodebuild', 'MACOSX_DEPLOYMENT_TARGET=10.12', 'ARCHS=x86_64', '-sdk',
'macosx', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '16', '-target',
'ALL_BUILD', 'build']' returned non-zero exit status 65
============================================================
Traceback (most recent call last):
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 148,
in build
self._build(outdir)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 122,
in _build
self.buildOne(target[0], target[1], main_build_dir, cmake_flags)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 255,
in buildOne
execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 44, in
execute
retcode = check_call(cmd, cwd = cwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 190, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['xcodebuild', 'MACOSX_DEPLOYMENT_TARGET=10.12',
'ARCHS=x86_64', '-sdk', 'macosx', '-configuration', 'Release', '-parallelizeTargets', '-
jobs', '16', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
I give up on this after couple hours. And maybe try to find another route. I find these two videos showing how to build the library with the cmake app, which builds and installs opencv at /usr/local/bin. He then opens XCode and points to these files, but he is making a macOS c++ command line app. Is there a way to use this c++ app in a swift app as a library or submodule?
help solve the problem!
I have:
--Mac OS X 10.7.2
--Titanium Studio, build: 1.0.7.201112281340
--Xcode, ver 4.2.1, Build 4D502
--iPhone 5.0.1 iOs
--application I am trying to write
When I try to run the application on the iPhone Device I get the error.
Hier is Console Log
[TRACE] app property, ti.android.runtime : rhino
[DEBUG] Detecting modules in /Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/modules
[DEBUG] Detecting modules in /Users/<USER>/Library/Application Support/Titanium/modules
[INFO] Performing clean build
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
In /Users//Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/build.log i have:
CodeSign build/Debug-iphoneos/ZeusLight.app
cd "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone"
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign "iPhone Developer: <CERTIFICATE HIER>" "--resource-rules=/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app/ResourceRules.plist" --entitlements "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/ZeusLight.build/Debug-iphoneos/ZeusLight-universal.build/ZeusLight.xcent" "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app"
/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app: object file format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CodeSign build/Debug-iphoneos/ZeusLight.app
(1 failure)
EXIT CODE WAS: 65
Exception detected in script:
Traceback (most recent call last):
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
Running on the emulator - there is no error, all is well.
The reason? This is driving me crazy!
Regards...
Try to delete the "build" folder inside your app source directory. Then again build for device.
This is what i get:
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
2011-02-26 21:17:43.274 Treacle[2493:5c03] [NMSP_ERROR] readCallBack(): Network error, calling closeCallback! Error:2517952
2011-02-26 21:17:43.284 Treacle[2493:5c03] [NMSP_ERROR] writeCallBack() Received error kCFStreamEventErrorOccurred.
2011-02-26 21:17:43.539 Treacle[2493:307] [NMSP_ERROR] check status Error: -12986 -> line: 434
2011-02-26 21:17:43.689 Treacle[2493:307] [NMSP_ERROR] check status Error: -12986 -> line: 434
I don't know what file it has a problem with at line 434 but on my view controller.m that line has been there for ages without causing problems and is contained in a method, which isn't triggered when the app starts.
This is a known problem. Just go to /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148) and copy /Symbols/usr/lib/info/dns.so file from 4.2 Symbols folder to 4.2.1 (8C148)/Symbols/usr/lib/info folder. It's just not there. Quit your Xcode and open it again. It should work.
Are you using location services?
It looks like LocationKit is talking to a location NMSP server (likely your router?) and having problems with it...
Try running on the device with wi-fi off and see if the problem persists.
I'm having problems trying to package my Appcelerator Titanium app.
It builds correctly, and I can run it on my iPod Touch.
When I try to Package for distribution in the App Store I get the following errors in build.log:
Build details:
timestamp=12/16/10 16:25
version=1.5.1
githash=16bbb92
Script arguments:
/Users/wfm2/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py
distribute
"4.2"
"/Users/wfm2/Documents/Nick Hutton/SynthBasics1"
net.macdonaldsoftware.synthbasics1
"SynthBasics1"
<null>
"William Macdonald"
"/Users/wfm2/Documents/Nick Hutton/SynthBasics1"
iphone
Building from: /Users/wfm2/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone
Platform: Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
Xcode path is: /Developer
Exception detected in script:
Traceback (most recent call last):
File "/Users/wfm2/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 599, in main
provisioning_profile = read_provisioning_profile(pp,o)
File "/Users/wfm2/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 212, in read_provisioning_profile
f = open(f,'rb').read()
IOError: [Errno 2] No such file or directory: u'/Users/wfm2/Library/MobileDevice/Provisioning Profiles/<null>.mobileprovision'
it does not appear that you have your mobile provisioning profile configured properly; based on the last line of the output you provided.
you need to goto developer.apple.com and download your provisioning profile