Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
5cebf70d
Commit
5cebf70d
authored
Feb 16, 2016
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`flutter start` initializes the Xcode project if the user has not already done so.
parent
d38bfee6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
327 additions
and
314 deletions
+327
-314
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+1
-1
ios.dart
packages/flutter_tools/lib/src/commands/ios.dart
+2
-311
device_ios.dart
packages/flutter_tools/lib/src/ios/device_ios.dart
+6
-2
initialize_xcode.dart
packages/flutter_tools/lib/src/ios/initialize_xcode.dart
+318
-0
No files found.
packages/flutter_tools/lib/src/commands/create.dart
View file @
5cebf70d
...
...
@@ -13,7 +13,7 @@ import '../android/android.dart' as android;
import
'../artifacts.dart'
;
import
'../base/globals.dart'
;
import
'../dart/pub.dart'
;
import
'
ios
.dart'
;
import
'
../ios/initialize_xcode
.dart'
;
class
CreateCommand
extends
Command
{
final
String
name
=
'create'
;
...
...
packages/flutter_tools/lib/src/commands/ios.dart
View file @
5cebf70d
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/ios/device_ios.dart
View file @
5cebf70d
...
...
@@ -17,6 +17,7 @@ import '../build_configuration.dart';
import
'../device.dart'
;
import
'../services.dart'
;
import
'../toolchain.dart'
;
import
'../ios/initialize_xcode.dart'
;
import
'simulator.dart'
;
const
String
_ideviceinstallerInstructions
=
...
...
@@ -560,8 +561,11 @@ String _getIOSEngineRevision(ApplicationPackage app) {
Future
<
bool
>
_buildIOSXcodeProject
(
ApplicationPackage
app
,
{
bool
buildForDevice
})
async
{
if
(!
FileSystemEntity
.
isDirectorySync
(
app
.
localPath
))
{
printError
(
'Path "
${path.absolute(app.localPath)}
" does not exist.
\n
Did you run `flutter ios --init`?'
);
return
false
;
printTrace
(
'Path "
${path.absolute(app.localPath)}
" does not exist. Initializing the Xcode project.'
);
if
((
await
initializeXcodeProjectHarness
())
!=
0
)
{
printError
(
'Could not initialize the Xcode project.'
);
return
false
;
}
}
if
(!
_validateEngineRevision
(
app
))
...
...
packages/flutter_tools/lib/src/ios/initialize_xcode.dart
0 → 100644
View file @
5cebf70d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment