No architectures to compile iphone sdk - ios4

I'm trying to compile a project from github - https://github.com/JaredCrawford/iWVU/blob/61448d679192a574a9cc1aa1ee671ffa08e93a6c/Libraries/ARKit/ARViewController.m . When i run it i get
'No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).'
and above this in gray its 'Build Three20'. Any ideas on how to fix this?
Also - if i remove the'build tree20' dependancie i get error: There is no SDK with the name or path 'iphonesimulator3.0'.

The error There is no SDK with the name or path is usually due to a project referencing a version of the SDK which you don't have. Check "Base SDK" in Build Settings; you usually want to set it to "Latest iOS".
Are you sure you have the latest version of iWVU? I just downloaded it and it builds fine for me...

Related

Android studio is giving the following error when I am trying to build a ionic project "Gradle sync failed: Sync failed: reason unknown"

I am trying to build a ionic project in Android studio on Ubuntu 20.04 . I am using the command ionic capacitor build then android studio opens up as expected then it shows this error Gradle sync failed: Sync failed: reason unknown. I am unable find a solution for this particular gradle sync error. I have reinstalled Ubuntu and other things but still the problem persists.
In my case, a fresh install of Android Studio resulted in Android 31 being the only SDK available but the project was targeting Android 30. I went to Tools > SDK Manager and made sure the appropriate version of Android SDK was installed and available. After restarting, and allowing the gradle sync to complete I was able to build/run the app on a virtual device, etc.
Here is what I found
This is the screenshot thanks for helping.
Capacitor lets you manage your own Android project. Like any IDE-backed project, sometimes things get so out of sync that the only solution is to rebuild the project.
To do this, follow these steps:
Copy any source code you created (such as Java files in app/android/src, manifest files, or resource files) into a safe location outside of app/android.
Next, make sure you are running an updated version of the Capacitor CLI:
npm install #capacitor/cli#latest
Remove the android directory:
rm -rf android/
Re-create the Android app from Capacitor:
npx cap add android
Copy your saved source files back into the project.
Check the error log. You should find something like "Module: 'mobile' platform 'android-30' not found" or something similar. Click Tools > SDK Manager and download the appropriate Android SDK Platform package.
on top right you will see option to view log file upon clicking there you will redirect to file manager and open idea file there
example :
open idea file and scroll down you will see actual issue.
In my case android sdk 31 was not installed.
I installed android sdk 31 from File>Settings>Apprearance and behaviour>system settings>android sdk and install required android sdk and rebuild the project.
accord to my observation in most cases you get this error because you have not required sdk installed in your system.

Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found

Installed Android 4.1 on Ubuntu 20.04. Getting the following error:
Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found.
On opening the SDK manager I get the following screen:
I also executed
$ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --licenses
How to fix this?
------ edit ---------
This is what shows in the SDK Platforms tab. Unchecking the "Hide Obsolete Packages" doesn't change anything.
As the error is saying. Install the SDK Platform with API Level 29. YOu need to switch to the tab " SDK Platforms and install the right API Level:
-----------edit--------------
maybe you changed accidently your SDK location.
Mine is on C:\Users\elmo\AppData\Local\Android\Sdk
Pay attention: using it on windows.
go to the "sdk platforms" you can find it by click on navigate->find anywhere than enter "sdk"
than what you need is to find the api level you need (29 in your case) and check the box near it.
Go to File -> Project Structure -> Modules(Properties Tab) -> Change the compile Sdk Version and Build Tools Version to the the latest version available at the time
img

CMake - How can I pass the windows SDK version to an ExternalProject built with msbuild?

I have a CMake project which has an external dependency (Crypto++). The external project has a vcxproj file provided, so in order to add it to the build process, I added it like this:
ExternalProject_Add(CryptoPP
SOURCE_DIR ${CRYPTOPP_SRC_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND "${MSBUILD_EXE}"
"/p:OutDir=<BINARY_DIR>/bin/$<CONFIG>/"
"/p:IntDir=<BINARY_DIR>/obj/$<CONFIG>/"
"/p:Configuration=$<CONFIG>"
"/p:Platform=${CMAKE_VS_PLATFORM_NAME}"
"<SOURCE_DIR>/${CRYPTOPP_PROJECT}"
INSTALL_COMMAND "${CMAKE_COMMAND}" -E make_directory <INSTALL_DIR>/lib
COMMAND "${CMAKE_COMMAND}" -E copy <BINARY_DIR>/bin/$<CONFIG>/cryptlib${CMAKE_STATIC_LIBRARY_SUFFIX} <INSTALL_DIR>/lib
)
This worked fine until I started using Windows 10. Now I'm getting this error: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
I tried passing the SDK version from CMake, using the only related CMake variable I could find, by adding this flag to msbuild:
"/p:WindowsTargetPlatformVersion=${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}"
However, I'm still getting the same error. I tried displaying the value of the CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION variable, and it always seems empty.
Modifying the dependency vcxproj is not an option. I don't know in advance what SDK version whoever needs to build the project has installed, so that's not an option.
I can't find any way to obtain and pass the SDK version to the external project build, what am I doing wrong?
I found the problem. I forgot to set the platform toolset. I was building my CMake project with v100 so it doesn't need an SDK version. Because I didn't configure the platform toolset for the external project, it used the one set in the project which was the latest (v141) which needed an SDK version.
So adding this flag fixed my setup:
"/p:PlatformToolset=${CMAKE_VS_PLATFORM_TOOLSET}"

Android Studio re-installation from 1.x.x to 2.3.3 version

1) I re-installed Android Studio from 1.x.x to 2.3.3 version. The installation guide said the difference is too big and suggested first the previous version be uninstalled. It appears uninstallation still leaves the previous Studio structure and AndroidStudio and SDK directories still are kept in their places. Then installation built a new version at locations AndroidStudio1 and SDK1.
But when I look in Settings for SDK location it points to SDK rather than to SDK1. Could it be a problem?
2) When trying to "Check out project from Version Control > GitHub" I receive the following error "Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified".
The sdk directory name is not a problem. You can always change to any sdk version you want
U need to install git first. Have you installed git?

Grabble project sync failed

I have installed Android Studio. When I launch the program, there is the following error.
"Failed to find: com.android.support:appcompat-v7:10.+"
I have checked the SDK manager, Android Support Library and Android are installed.
Maybe my question appears to be stupid but I didn't find any answer.
[EDIT] I changed the
com.android.support:appcompat-v7:10.+
to:
compile 'com.android.support:appcompat-v7:21.0.2'
Now I have more than 400 lines of not found files:
http://pastebin.com/Sa4scRH1
In you build.gradle you have in the dependency section a line containing this string:
compile 'com.android.support:appcompat-v7:10.+'
replace it with this one:
compile 'com.android.support:appcompat-v7:21.0.2'
You are using there a quite old version of the compat library just use the newest one v21.0.2. If this still fails install the support repository from the SDK Manager.

Resources