Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5458] new 5.0 studio can't recognize the iOS SDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2017-12-19T18:24:40.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsStudio
Labelsn/a
Reporterjason hu
AssigneeShak Hossain
Created2017-12-15T17:15:28.000+0000
Updated2017-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

FileDateSize
error1.png2017-12-15T17:13:07.000+0000122309
error2.png2017-12-17T17:09:24.000+0000375554
studio5.log2017-12-17T17:17:12.000+00001580802

Comments

  1. Sharif AbuDarda 2017-12-15

    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 " provide the xcode folder path which usually /Applications/Xcode.app/Contents/. Let us know. Thanks.
  2. jason hu 2017-12-15

    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.
  3. Mostafizur Rahman 2017-12-17

    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 *" provide the xcode folder path which usually /Applications/Xcode.app/Contents/. Restart the studio for your changes to take effect. and open studio again. Let us know. Thanks.
  4. jason hu 2017-12-17

    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
  5. jason hu 2017-12-17

    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.
  6. jason hu 2017-12-17

    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)
  7. jason hu 2017-12-18

    BTW, why can't I even choose 5.0 as the subject
  8. Mostafizur Rahman 2017-12-18

    [~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
  9. jason hu 2017-12-18

    it is working now. what does "npm install ioslib@next" do?
  10. Sharif AbuDarda 2017-12-18

    Hello, Is the issue fixed for you?
  11. jason hu 2017-12-18

    yes, it is fixed with those commands. can you please help me understand what went wrong initially ?
  12. maheshnrk 2017-12-20

    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
  13. Mostafizur Rahman 2017-12-20

    [~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.

JSON Source