I am trying to upload app to iTuneConnect and I am keep getting this error
I have updated the Info.plist as below
<key>XSLaunchImageAssets</key>
<string>Resources/Media.xcassets/LaunchImages.launchimage</string>
<key>XSAppIconAssets</key>
<string>Resources/Media.xcassets/AppIcons.appiconset</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>Icon-60#2x.png</string>
<string>Icon-72.png</string>
<string>Icon-72#2x.png</string>
<string>Icon-76.png</string>
<string>Icon-76#2x.png</string>
<string>Icon-83.5#2x.png</string>
</array>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>Icon-60#2x.png</string>
<string>Icon-72.png</string>
<string>Icon-72#2x.png</string>
<string>Icon-76.png</string>
<string>Icon-76#2x.png</string>
<string>Icon-83.5#2x.png</string>
</array>
</dict>
</dict>
</dict>
</dict>
I also deleted and readded Asset Catalogs but no luck. I am on latest VS2017 Version 15.3.5, Xamarin-4.7.9.45 and Xcode 9.0. Any help will be appreciated
Related
I have a Xamarin.iOS project and it has included a nugget package aswell. When I try to rebuild the project, I am getting 14 errors and those are UISceneConfiguration, UISceneSession etc could not be found issues. My nugget package is something like Abcd.SDK.0.9.7.nupkg and for the iOS project I can see they have set the Assembly name and the Default namespace like below
Assembly name - SampleiOS(which is the iOS project name).
Default namespace - ABCD.SDK.Sample.iOS
In my AppDelegate.cs I can see the class namespace as my solution name.
What is the cause for these kind of errors and how can I solve this?
Please help me.
Thank you.
UPDATE 1
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
UPDATE 2
First having a check with project whether contains the SceneDelegate.cs file .
It above is no problem , then opening Info.plist file with XML Style to check contain the follow code :
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
Lastly , cleaning project and rebuilding it !
===============================Update====================================
Finally checked this document , if need function of iOS 13 , requires in Visual Studio 2019 .Here SceneDelegate.cs starts from iOS 13 , and then can run the shared project from Randi .
I have set the system path properly and have tried doing this several times. But I keep getting the error that
g++ is not recognized as an internal or external command
The full error message is:
'g++' is not recognized as an internal or external command, operable
program or batch file. [Finished in 0.2s with exit code 1] [shell_cmd:
g++ "C:\Users\NIGHTMARE\Documents\test.c" -o
"C:\Users\NIGHTMARE\Documents/test" &&
"C:\Users\NIGHTMARE\Documents/test"] [dir:
C:\Users\NIGHTMARE\Documents] [path:
C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\GtkSharp\2.12\bin;C:\mingw32;C:\Users\NIGHTMARE\AppData\Local\Microsoft\WindowsAppsC:\mingw32;]
What should I do to solve this problem?
I have met a similar problem when I tried to use pandoc to convert markdown to pdf files. The pandoc path has been properly set up: I can use pandoc command in system cmd.
I wrote a simple build system in sublime text to use pandoc to compile my file but similar error occurred. After consulting the sublime documentation, I have found that we can set a path variable in the custom build system:
path Optional.
PATH used by the cmd subprocess.
Use this option to add directories to PATH without having to modify
your system’s settings.Environmental variables will be expanded.
The following is a working build system that works for me:
{
"shell_cmd": "pandoc --pdf-engine=xelatex -f gfm --highlight-style zenburn -Vurlcolor=NavyBlue -V CJKmainfont=\"Source Han Serif SC\" \"${file}\" -o \"${file_path}/${file_base_name}.pdf\" ",
"path": "C:/Users/east/AppData/Local/Pandoc/;%PATH%",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "text.html.markdown",
"variants":
[
{
"name": "Convert to PDF and Preview",
"shell_cmd": "pandoc --pdf-engine=xelatex -f gfm --highlight-style zenburn -Vurlcolor=NavyBlue -V CJKmainfont=\"Source Han Serif SC\" \"${file}\" -o \"${file_path}/${file_base_name}.pdf\" &&SumatraPDF \"${file_path}/${file_base_name}.pdf\" ",
"path": "C:/Users/east/AppData/Local/Pandoc/;%PATH%",
// "shell_cmd": "start \"$file_base_name\" call $file_base_name"
}
]
}
You have to adapt it to your case, just change the path to directory where your g++ command resides which is followed by system path %PATH%.
After using above build system, I no longer met this problem. Let me know if it works for you.
xcrun xcodebuild -log -sdk iphoneos PackageApplication "$OUTPUTDIR/$APPNAME.app" -o "$OUTPUTDIR/$APPNAME.ipa" -sign "$DEVELOPER_NAME" -embed "$PROVISIONING_PROFILE"
This is the command now i am using in xcode7.3.1. i updated xcode to 8.0 version. while running this command in terminal I am getting error as "warning: PackageApplication is deprecated, use xcodebuild -exportArchive instead."
is there any alternative command???
In Xcode8, xcrun PackageApplication is deprecated, so I was successful with the use of this way.
#archive
xcodebuild -sdk iphoneos10.0 -project Unity-iPhone.xcodeproj \
-scheme Unity-iPhone \
-configuration Release build \
-archivePath $ARCHIVE_DIRECTORY'/'$APP_NAME'.xcarchive' \
archive
#export ipa
xcodebuild -exportArchive \
-archivePath $ARCHIVE_DIRECTORY'/'$APP_NAME'.xcarchive' \
-exportPath $OUT_PATH'/' \
-exportOptionsPlist exportOptions.plist
And the contents of exportOptions.plist is (for adhoc),
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>ad-hoc</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
<key>uploadBitcode</key>
<true/>
<key>uploadSymbols</key>
<true/>
</dict>
</plist>
I'm using the Android ndk-r8e, and I'm having a problem building a project. I get the above-mentioned error message. I've checked my AndroidManifest.xml and minSdkVersion is set to 15, which is what I intend. According to the error message, APP_PLATFORM is set to android-14, which is smaller, not larger than minSdkVersion, so why am I getting the error?
Thanks.
Check your jni/Application.mk
You should have following line:-
APP_PLATFORM := android-14
If you do not have that line then version of your SDK is taken from project.properties files.
I have installed Phalanger from http://phalanger.codeplex.com/ and installed Phalanger Tools from the built-in market-place function in my Visual Studio 2012 Ultimate distribution. After doing this, every time I boot start Visual Studio I get a dialog-box with the error:
If I examine ActivityLog.xml I find the following errors (all other elements omitted):
<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>16</record>
<time>2013/10/04 14:43:55.426</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Loading UI library</description>
<guid>{712C84E3-B447-4283-ABF3-D00B161E63FE}</guid>
<hr>800a006f</hr>
<errorinfo>Cannot find the requested resource.</errorinfo>
</entry>
<entry>
<record>63</record>
<time>2013/10/04 14:44:03.569</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [PHP.Project.PHPProjectPackage, PHP.VS, Version=1.8.4608.0, Culture=neutral, PublicKeyToken=17116b35d45f8bb8]</description>
<guid>{9DD0D70B-6760-4C96-B1DC-03AAF937D95A}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
<record>64</record>
<time>2013/10/04 14:44:03.574</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [PHP.Project.PHPProjectPackage, PHP.VS, Version=1.8.4608.0, Culture=neutral, PublicKeyToken=17116b35d45f8bb8]</description>
<guid>{9DD0D70B-6760-4C96-B1DC-03AAF937D95A}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
</activity>
Does anyone have a take on what I could do to relieve this?
It seams, you have PHP Tools for Visual Studio, not Phalanger Tools. Also it is possible you installed PHP Tools in addition to Phalanger Tools.
Try to uninstall both, and install Phalanger Tools only.