[AC-5458] new 5.0 studio can't recognize the iOS SDK
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2017-12-19T18:24:40.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Studio |
Labels | n/a |
Reporter | jason hu |
Assignee | Shak Hossain |
Created | 2017-12-15T17:15:28.000+0000 |
Updated | 2017-12-20T19:55:18.000+0000 |
Description
After I upgraded to the latest version 5.0, it can't recognize the iOS SDK, Android SDK is fine.
I had to rollback to studio 4.1.
BTW, the "Affectes Version" still doesn't have 5.0 as an option to pick
Attachments
Hello, Do you have multiple xcode installed on your system? Can you click the refresh button in the studio preference? You can try to run this command in CLI "sudo xcode-select -switch
I only have one xcode installed. Yes I tried to run the command before I submitted the ticket. There's nothing wrong with my xcode, I can use studio 4.1 just fine. I can use atom with appcelerator plugin just fine. Yes. I tried the refresh button, it didn't do anything. If I click the configure, it opens my Mac app store.
Hello [~jason919], Thanks for your feedback. Are you using latest CLI and SDK? You can try to run this command in CLI "*sudo xcode-select -switch
Before I submitted first ticket, I have already tried the command. Same result, it can't identify iOS. $ sudo xcode-select -switch /Applications/Xcode.app/Contents/ Password: xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/' $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ $ appc setup Finding latest version ...7.0.0 ✓ Version 7.0.0 already installed. ? Do you plan on developing Titanium apps? Yes Checking your environment... You have the latest Titanium SDK release 7.0.0.GA Congrats! No issues detected for developing cross-platform mobile apps! appc setup complete! $ node --version v8.9.3 $ appc --version 7.0.0
I tried the 5.0 GA build and nightly build, same result, can't identify iOS SDK. but my appcelerator atom plugin works fine and studio 4.1 works fine.
I uploaded the studio's log file here is the exception in the log !ENTRY org.eclipse.core.jobs 4 2 2017-12-17 11:06:04.275 !MESSAGE An internal error occurred during: "Update iOS info". !STACK 0 java.lang.NullPointerException at com.appcelerator.titanium.ios.core.daemon.DaemonIOSSDKLocator.parseTiInfo(DaemonIOSSDKLocator.java:188) at com.appcelerator.titanium.ios.core.daemon.DaemonIOSSDKLocator.updateTiInfo(DaemonIOSSDKLocator.java:156) at com.appcelerator.titanium.ios.core.daemon.DaemonIOSSDKLocator.access$1(DaemonIOSSDKLocator.java:153) at com.appcelerator.titanium.ios.core.daemon.DaemonIOSSDKLocator$1.run(DaemonIOSSDKLocator.java:167) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
BTW, why can't I even choose 5.0 as the subject
[~jason919], Thanks for your feedback. Run the following commands and let us know how it goes. * Close Appcelerator Studio * Open the terminal * Stop the daemon: *appc appcd stop* * cd into the appcelerator package: *cd ~/.appcelerator/install/7.0.0/package* * Install the update: *npm install ioslib@next* * Reopen Studio Hope this helps. Best
it is working now. what does "npm install ioslib@next" do?
Hello, Is the issue fixed for you?
yes, it is fixed with those commands. can you please help me understand what went wrong initially ?
The above solution did not work for me. I was told to revert back to SDK 6.3.0 by running the command "appc use 6.3.0" but I was not able to download using the command. So Instead I did below. 1. Even though appc use 6.3.0 command showed download as success, but the sdk was not actually downloaded in the Titanium mobile sdk folder. 2. So I compressed the sdk from another mac and then send it to the macbook that had the issue. 3. Then restarted studio - then 6.3.0 sdk was listed in tiapp.xml. 4. Then I ran the command in terminal appc use 6.3.0 5. Restarted the studio 6. Now the ios and anroid SDKs are configured. I am still in the latest studio version Axway Appcelerator Studio, build: 5.0.0.201712081732
[~maheshnrk] Please try the following commands via the terminal/command prompt. appc logout -D npm install -g appcelerator appc use latest appc config set proxyServer null appc setup appc login Open the terminal Stop the daemon: appc appcd stop cd into the appcelerator package: cd ~/.appcelerator/install/7.0.0/package Install the update: npm install ioslib@next Open Studio Hope this helps.